Skip to content

Commit 0144fbf

Browse files
committed
Add software from gvalkov
Signed-off-by: Georgi Valkov <[email protected]>
1 parent afa17cb commit 0144fbf

File tree

12 files changed

+806
-0
lines changed

12 files changed

+806
-0
lines changed

package/libs/g_api/Makefile

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#
2+
# Copyright (C) 2019 gvalkov.com
3+
#
4+
# This is free software, licensed under the GNU General Public License v2.
5+
# See /LICENSE for more information.
6+
# https://wiki.openwrt.org/doc/devel/packages
7+
#
8+
9+
include $(TOPDIR)/rules.mk
10+
11+
PKG_NAME:=g_api
12+
PKG_BIN:=$(PKG_NAME).lib
13+
PKG_VERSION:=$(shell date +"%Y-%m-%d")
14+
PKG_RELEASE:=1
15+
16+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17+
PKG_SOURCE_URL:=file://~/g
18+
PKG_HASH:=2c3daf2e61e4a01226c9e96392e76e5384afae9600d0416c0a6c6f04d378d1ef
19+
20+
PKG_MAINTAINER:=Georgi Valkov <[email protected]>
21+
PKG_LICENSE:=GPL-2.0
22+
23+
ifeq (,$(findstring apple,$(shell $(COMPILE.cpp) --version)))
24+
# Linux
25+
USE_SOURCE_DIR:=~/g/lib/$(PKG_NAME)
26+
else
27+
# macOS
28+
USE_SOURCE_DIR:=~/Documents/vs-projects/lib/$(PKG_NAME)
29+
endif
30+
31+
include $(INCLUDE_DIR)/package.mk
32+
33+
define Package/$(PKG_NAME)
34+
SECTION:=libs
35+
CATEGORY:=Libraries
36+
TITLE:=g_api static library
37+
URL:=https://httpstorm.com/tools/lib/g_api/
38+
DEPENDS:=+libgcrypt +libopenssl
39+
endef
40+
41+
define Package/$(PKG_NAME)/description
42+
g_api static library
43+
endef
44+
45+
define Build/Configure
46+
endef
47+
48+
# -fno-exceptions: prevents undefined reference to _Unwind_Resume, __gxx_personality_v0
49+
# test: -fno-rtti -fno-exceptions
50+
TARGET_CPPFLAGS:= \
51+
$(TARGET_CPPFLAGS) -fno-exceptions \
52+
-D_GNU_SOURCE -DEMBEDDED=1 -DOPENWRT=1 -D__OPENWRT__=1
53+
54+
# -nodefaultlibs: prevents missing dependencies on libstdc++.so.6
55+
# -lc: prevents undefined reference to printf and many others, when -nodefaultlibs is used
56+
# test: -nodefaultlibs -lgcc -lc -uClibc++ -pthread
57+
MAKE_FLAGS += \
58+
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -ffunction-sections -fdata-sections" \
59+
LDFLAGS="$(TARGET_LDFLAGS) -Wl,--gc-sections -nodefaultlibs -lc" \
60+
V=1
61+
62+
define Package/$(PKG_NAME)/install
63+
$(INSTALL_DIR) $(1)/usr/lib
64+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/$(PKG_BIN) $(1)/usr/lib/
65+
endef
66+
67+
$(eval $(call BuildPackage,$(PKG_NAME)))
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#
2+
# Copyright (C) 2019 gvalkov.com
3+
#
4+
# This is free software, licensed under the GNU General Public License v2.
5+
# See /LICENSE for more information.
6+
# https://wiki.openwrt.org/doc/devel/packages
7+
#
8+
9+
include $(TOPDIR)/rules.mk
10+
11+
PKG_NAME:=DiAssist
12+
PKG_BIN:=$(PKG_NAME)
13+
PKG_VERSION:=$(shell date +"%Y-%m-%d")
14+
PKG_RELEASE:=1
15+
16+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17+
PKG_SOURCE_URL:=ile://~/g
18+
PKG_HASH:=2c3daf2e61e4a01226c9e96392e76e5384afae9600d0416c0a6c6f04d378d1ef
19+
20+
PKG_MAINTAINER:=Georgi Valkov <[email protected]>
21+
PKG_LICENSE:=GPL-2.0
22+
23+
ifeq (,$(findstring apple,$(shell $(COMPILE.cpp) --version)))
24+
# Linux
25+
USE_SOURCE_DIR:=~/g/net/$(PKG_NAME)
26+
else
27+
# macOS
28+
USE_SOURCE_DIR:=~/Documents/vs-projects/net/$(PKG_NAME)
29+
endif
30+
31+
include $(INCLUDE_DIR)/package.mk
32+
33+
define Package/$(PKG_NAME)
34+
SECTION:=net
35+
CATEGORY:=Network
36+
TITLE:=DiAssist WebSocket server
37+
URL:=https://httpstorm.com/tools/test/$(PKG_NAME)/
38+
DEPENDS:=+g_api
39+
endef
40+
41+
define Package/$(PKG_NAME)/description
42+
DiAssist WebSocket server
43+
endef
44+
45+
define Build/Configure
46+
endef
47+
48+
# -fno-exceptions: prevents undefined reference to _Unwind_Resume, __gxx_personality_v0
49+
# test: -fno-rtti -fno-exceptions
50+
TARGET_CPPFLAGS:= \
51+
$(TARGET_CPPFLAGS) -fno-exceptions \
52+
-D_GNU_SOURCE -DEMBEDDED=1 -DOPENWRT=1 -D__OPENWRT__=1
53+
54+
# -nodefaultlibs: prevents missing dependencies on libstdc++.so.6
55+
# -lc: prevents undefined reference to printf and many others, when -nodefaultlibs is used
56+
# test: -nodefaultlibs -lgcc -lc -uClibc++ -pthread
57+
MAKE_FLAGS += \
58+
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -ffunction-sections -fdata-sections" \
59+
LDFLAGS="$(TARGET_LDFLAGS) -Wl,--gc-sections -nodefaultlibs -lc" \
60+
V=1
61+
62+
define Package/$(PKG_NAME)/install
63+
$(INSTALL_DIR) $(1)/usr/sbin
64+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/$(PKG_BIN) $(1)/usr/sbin/
65+
endef
66+
67+
$(eval $(call BuildPackage,$(PKG_NAME)))
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#
2+
# Copyright (C) 2019 gvalkov.com
3+
#
4+
# This is free software, licensed under the GNU General Public License v2.
5+
# See /LICENSE for more information.
6+
# https://wiki.openwrt.org/doc/devel/packages
7+
#
8+
9+
include $(TOPDIR)/rules.mk
10+
11+
PKG_NAME:=g-net-com
12+
PKG_BIN:=gncom
13+
PKG_VERSION:=$(shell date +"%Y-%m-%d")
14+
PKG_RELEASE:=1
15+
16+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17+
PKG_SOURCE_URL:=ile://~/g
18+
PKG_HASH:=2c3daf2e61e4a01226c9e96392e76e5384afae9600d0416c0a6c6f04d378d1ef
19+
20+
PKG_MAINTAINER:=Georgi Valkov <[email protected]>
21+
PKG_LICENSE:=GPL-2.0
22+
23+
ifeq (,$(findstring apple,$(shell $(COMPILE.cpp) --version)))
24+
# Linux
25+
USE_SOURCE_DIR:=~/g/net/$(PKG_NAME)
26+
else
27+
# macOS
28+
USE_SOURCE_DIR:=~/Documents/vs-projects/net/$(PKG_NAME)
29+
endif
30+
31+
include $(INCLUDE_DIR)/package.mk
32+
33+
define Package/$(PKG_NAME)
34+
SECTION:=net
35+
CATEGORY:=Network
36+
TITLE:=COM to TCP bridge
37+
URL:=https://httpstorm.com/tools/net/$(PKG_NAME)/
38+
DEPENDS:=+g_api
39+
endef
40+
41+
define Package/$(PKG_NAME)/description
42+
COM to TCP bridge
43+
endef
44+
45+
define Build/Configure
46+
endef
47+
48+
# -fno-exceptions: prevents undefined reference to _Unwind_Resume, __gxx_personality_v0
49+
# test: -fno-rtti -fno-exceptions
50+
TARGET_CPPFLAGS:= \
51+
$(TARGET_CPPFLAGS) -fno-exceptions \
52+
-D_GNU_SOURCE -DEMBEDDED=1 -DOPENWRT=1 -D__OPENWRT__=1
53+
54+
# -nodefaultlibs: prevents missing dependencies on libstdc++.so.6
55+
# -lc: prevents undefined reference to printf and many others, when -nodefaultlibs is used
56+
# test: -nodefaultlibs -lgcc -lc -uClibc++ -pthread
57+
MAKE_FLAGS += \
58+
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -ffunction-sections -fdata-sections" \
59+
LDFLAGS="$(TARGET_LDFLAGS) -Wl,--gc-sections -nodefaultlibs -lc" \
60+
V=1
61+
62+
define Package/$(PKG_NAME)/install
63+
$(INSTALL_DIR) $(1)/usr/sbin
64+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/$(PKG_BIN) $(1)/usr/sbin/
65+
endef
66+
67+
$(eval $(call BuildPackage,$(PKG_NAME)))
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#
2+
# Copyright (C) 2019 gvalkov.com
3+
#
4+
# This is free software, licensed under the GNU General Public License v2.
5+
# See /LICENSE for more information.
6+
# https://wiki.openwrt.org/doc/devel/packages
7+
#
8+
9+
include $(TOPDIR)/rules.mk
10+
11+
PKG_NAME:=g-net-speed
12+
PKG_BIN:=gns
13+
PKG_VERSION:=$(shell date +"%Y-%m-%d")
14+
PKG_RELEASE:=1
15+
16+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17+
PKG_SOURCE_URL:=ile://~/g
18+
PKG_HASH:=2c3daf2e61e4a01226c9e96392e76e5384afae9600d0416c0a6c6f04d378d1ef
19+
20+
PKG_MAINTAINER:=Georgi Valkov <[email protected]>
21+
PKG_LICENSE:=GPL-2.0
22+
23+
ifeq (,$(findstring apple,$(shell $(COMPILE.cpp) --version)))
24+
# Linux
25+
USE_SOURCE_DIR:=~/g/net/$(PKG_NAME)
26+
else
27+
# macOS
28+
USE_SOURCE_DIR:=~/Documents/vs-projects/net/$(PKG_NAME)
29+
endif
30+
31+
include $(INCLUDE_DIR)/package.mk
32+
33+
define Package/$(PKG_NAME)
34+
SECTION:=net
35+
CATEGORY:=Network
36+
TITLE:=network speed test utility
37+
URL:=https://httpstorm.com/tools/net/$(PKG_NAME)/
38+
DEPENDS:=+g_api
39+
endef
40+
41+
define Package/$(PKG_NAME)/description
42+
Sends and receives data over the network and measures the speed
43+
endef
44+
45+
define Build/Configure
46+
endef
47+
48+
# -fno-exceptions: prevents undefined reference to _Unwind_Resume, __gxx_personality_v0
49+
# test: -fno-rtti -fno-exceptions
50+
TARGET_CPPFLAGS:= \
51+
$(TARGET_CPPFLAGS) -fno-exceptions \
52+
-D_GNU_SOURCE -DEMBEDDED=1 -DOPENWRT=1 -D__OPENWRT__=1
53+
54+
# -nodefaultlibs: prevents missing dependencies on libstdc++.so.6
55+
# -lc: prevents undefined reference to printf and many others, when -nodefaultlibs is used
56+
# test: -nodefaultlibs -lgcc -lc -uClibc++ -pthread
57+
MAKE_FLAGS += \
58+
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -ffunction-sections -fdata-sections" \
59+
LDFLAGS="$(TARGET_LDFLAGS) -Wl,--gc-sections -nodefaultlibs -lc" \
60+
V=1
61+
62+
define Package/$(PKG_NAME)/install
63+
$(INSTALL_DIR) $(1)/usr/sbin
64+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/$(PKG_BIN) $(1)/usr/sbin/
65+
endef
66+
67+
$(eval $(call BuildPackage,$(PKG_NAME)))
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
#
2+
# Copyright (C) 2019 gvalkov.com
3+
#
4+
# This is free software, licensed under the GNU General Public License v2.
5+
# See /LICENSE for more information.
6+
# https://wiki.openwrt.org/doc/devel/packages
7+
#
8+
9+
include $(TOPDIR)/rules.mk
10+
11+
PKG_NAME:=g_dhcpd
12+
PKG_BIN:=$(PKG_NAME)
13+
PKG_VERSION:=$(shell date +"%Y-%m-%d")
14+
PKG_RELEASE:=1
15+
16+
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
17+
PKG_SOURCE_URL:=ile://~/g
18+
PKG_HASH:=2c3daf2e61e4a01226c9e96392e76e5384afae9600d0416c0a6c6f04d378d1ef
19+
20+
PKG_MAINTAINER:=Georgi Valkov <[email protected]>
21+
PKG_LICENSE:=GPL-2.0
22+
23+
ifeq (,$(findstring apple,$(shell $(COMPILE.cpp) --version)))
24+
# Linux
25+
USE_SOURCE_DIR:=~/g/net/$(PKG_NAME)
26+
else
27+
# macOS
28+
USE_SOURCE_DIR:=~/Documents/vs-projects/net/$(PKG_NAME)
29+
endif
30+
31+
include $(INCLUDE_DIR)/package.mk
32+
33+
define Package/$(PKG_NAME)
34+
SECTION:=net
35+
CATEGORY:=Network
36+
TITLE:=gvalkov.DHCP server
37+
URL:=https://httpstorm.com/tools/net/$(PKG_NAME)/
38+
DEPENDS:=+g_api
39+
endef
40+
41+
define Package/$(PKG_NAME)/description
42+
gvalkov.DHCP server
43+
endef
44+
45+
define Build/Configure
46+
endef
47+
48+
# -fno-exceptions: prevents undefined reference to _Unwind_Resume, __gxx_personality_v0
49+
# test: -fno-rtti -fno-exceptions
50+
TARGET_CPPFLAGS:= \
51+
$(TARGET_CPPFLAGS) -fno-exceptions \
52+
-D_GNU_SOURCE -DEMBEDDED=1 -DOPENWRT=1 -D__OPENWRT__=1
53+
54+
# -nodefaultlibs: prevents missing dependencies on libstdc++.so.6
55+
# -lc: prevents undefined reference to printf and many others, when -nodefaultlibs is used
56+
# test: -nodefaultlibs -lgcc -lc -uClibc++ -pthread
57+
MAKE_FLAGS += \
58+
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -ffunction-sections -fdata-sections" \
59+
LDFLAGS="$(TARGET_LDFLAGS) -Wl,--gc-sections -nodefaultlibs -lc" \
60+
V=1
61+
62+
define Package/$(PKG_NAME)/install
63+
$(INSTALL_DIR) $(1)/usr/sbin
64+
$(INSTALL_BIN) $(PKG_BUILD_DIR)/out/$(PKG_BIN) $(1)/usr/sbin/
65+
endef
66+
67+
$(eval $(call BuildPackage,$(PKG_NAME)))

0 commit comments

Comments
 (0)