Skip to content

Commit 0fc81ce

Browse files
committed
Update files
1 parent 0176985 commit 0fc81ce

File tree

2 files changed

+13
-24
lines changed

2 files changed

+13
-24
lines changed

Makefile

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ define Package/luci-app-openvpn-server
1212
SUBMENU:=OpenVPN Server
1313
SECTION:=luci
1414
CATEGORY:=LuCI
15-
URL:=https://github.com/DavBfr/wifidog-auth-luci
16-
MAINTAINER:=David <dev.nfet.net@gmail.com>
15+
URL:=https://github.com/DavBfr/luci-app-openvpn-server
16+
MAINTAINER:=David PHAM-VAN <dev.nfet.net@gmail.com>
1717
SUBMENU:=3. Applications
1818
DEPENDS:=+openvpn-openssl +openssl-util
1919
TITLE:=OpenVPN Server
@@ -27,7 +27,7 @@ define Package/luci-app-openvpn-server/conffiles
2727
/etc/config/ovpnauth
2828
endef
2929

30-
define Package/wifidog-auth-luci/description
30+
define Package/luci-app-openvpn-server/description
3131
This package contains LuCI configuration pages to configure an OpenVPN Server.
3232
endef
3333

@@ -40,31 +40,20 @@ endef
4040
define Build/Compile
4141
endef
4242

43-
define Package/wifidog-auth-luci/install
43+
define Package/luci-app-openvpn-server/install
4444
$(INSTALL_DIR) $(1)/etc/config
45-
$(INSTALL_DIR) $(1)/etc/init.d
46-
$(INSTALL_DIR) $(1)/etc/uci-defaults
4745
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/model/cbi
4846
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller
49-
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller/wifidog-auth
50-
51-
$(INSTALL_CONF) ./files/root/etc/config/wifidog $(1)/etc/config/
52-
53-
$(INSTALL_BIN) ./files/root/etc/init.d/wifidog $(1)/etc/init.d/
54-
$(INSTALL_BIN) ./files/root/etc/uci-defaults/luci-wifidog $(1)/etc/uci-defaults/
55-
56-
$(INSTALL_DATA) ./files/root/usr/lib/lua/luci/model/cbi/wifidog.lua $(1)/usr/lib/lua/luci/model/cbi/
57-
$(INSTALL_DATA) ./files/root/usr/lib/lua/luci/controller/wifidog.lua $(1)/usr/lib/lua/luci/controller/
58-
59-
$(INSTALL_DATA) ./files/root/usr/lib/lua/luci/controller/wifidog-auth/auth.lua $(1)/usr/lib/lua/luci/controller/wifidog-auth/
60-
$(INSTALL_DATA) ./files/root/usr/lib/lua/luci/controller/wifidog-auth/login.lua $(1)/usr/lib/lua/luci/controller/wifidog-auth/
61-
$(INSTALL_DATA) ./files/root/usr/lib/lua/luci/controller/wifidog-auth/gw_message.lua $(1)/usr/lib/lua/luci/controller/wifidog-auth/
62-
$(INSTALL_DATA) ./files/root/usr/lib/lua/luci/controller/wifidog-auth/ping.lua $(1)/usr/lib/lua/luci/controller/wifidog-auth/
63-
$(INSTALL_DATA) ./files/root/usr/lib/lua/luci/controller/wifidog-auth/portal.lua $(1)/usr/lib/lua/luci/controller/wifidog-auth/
64-
endef
47+
$(INSTALL_DIR) $(1)/usr/lib/lua/luci/controller/openvpn-server
48+
$(INSTALL_DIR) $(1)/usr/bin
6549

66-
define Package/wifidog-auth-luci/postinst
50+
$(INSTALL_BIN) ./gen_openvpn_server_keys.sh $(1)/usr/bin/
51+
$(INSTALL_BIN) ./add_ovpn_user.sh $(1)/usr/bin/
52+
$(INSTALL_BIN) ./ovpnauth.sh $(1)/usr/bin/
53+
endef
6754

55+
define Package/luci-app-openvpn-server/postinst
56+
/usr/bin/gen_openvpn_server_keys.sh
6857
endef
6958

70-
$(eval $(call BuildPackage,wifidog-auth-luci))
59+
$(eval $(call BuildPackage,luci-app-openvpn-server))
File renamed without changes.

0 commit comments

Comments
 (0)