From: azxxza22 <amrtmoh2006@gmail.com>
To: buildroot@buildroot.org
Cc: azxxza22 <amrtmoh2006@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH 1/2] nodogsplash package added
Date: Sun, 2 Jan 2022 20:15:24 +0200 [thread overview]
Message-ID: <20220102181525.9494-1-amrtmoh2006@gmail.com> (raw)
Signed-off-by: azxxza22 <amrtmoh2006@gmail.com>
---
package/Config.in | 1 +
package/nodogsplash/Config.in | 9 ++++++++
package/nodogsplash/nodogsplash.mk | 37 ++++++++++++++++++++++++++++++
3 files changed, 47 insertions(+)
create mode 100644 package/nodogsplash/Config.in
create mode 100644 package/nodogsplash/nodogsplash.mk
diff --git a/package/Config.in b/package/Config.in
index 2eda8f6ad7..152a2e9e60 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2270,6 +2270,7 @@ endif
source "package/nfacct/Config.in"
source "package/nftables/Config.in"
source "package/nginx/Config.in"
+ source "package/nodogsplash/Config.in"
if BR2_PACKAGE_NGINX
menu "External nginx modules"
source "package/nginx-dav-ext/Config.in"
diff --git a/package/nodogsplash/Config.in b/package/nodogsplash/Config.in
new file mode 100644
index 0000000000..7a68bcccb0
--- /dev/null
+++ b/package/nodogsplash/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_NODOGSPLASH
+ bool "nodogsplash"
+ depends on BR2_PACKAGE_LIBMICROHTTPD
+ help
+ Nodogsplash is a Captive Portal that offers
+ a simple way to provide restricted access to the Internet by
+ showing a splash page to the user before Internet access is granted
+
+ https://github.com/nodogsplash/nodogsplash/
diff --git a/package/nodogsplash/nodogsplash.mk b/package/nodogsplash/nodogsplash.mk
new file mode 100644
index 0000000000..3075b7e9f1
--- /dev/null
+++ b/package/nodogsplash/nodogsplash.mk
@@ -0,0 +1,37 @@
+################################################################################
+#
+# nodogsplash
+#
+################################################################################
+NODOGSPLASH_VERSION = v4.5.1
+NODOGSPLASH_SITE = git://github.com/nodogsplash/nodogsplash.git
+NODOGSPLASH_SITE_METHOD = git
+NODOGSPLASH_LICENSE = GPL-2.0
+NODOGSPLASH_LICENSE_FILES = COPYING
+NODOGSPLASH_DEPENDENCIES = libmicrohttpd
+NODOGSPLASH_INSTALL_STAGING = YES
+
+define NODOGSPLASH_BUILD_CMDS
+ $(MAKE1) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D)
+endef
+
+define NODOGSPLASH_INSTALL_EXTRA_FILES
+ mkdir -p $(TARGET_DIR)/usr/bin
+ mkdir -p $(TARGET_DIR)/etc/nodogsplash/htdocs/images
+ cp $(@D)/resources/nodogsplash.conf $(TARGET_DIR)/etc/nodogsplash/
+ cp $(@D)/resources/splash.html $(TARGET_DIR)/etc/nodogsplash/htdocs/
+ cp $(@D)/resources/splash.css $(TARGET_DIR)/etc/nodogsplash/htdocs/
+ cp $(@D)/resources/status.html $(TARGET_DIR)/etc/nodogsplash/htdocs/
+ cp $(@D)/resources/splash.jpg $(TARGET_DIR)/etc/nodogsplash/htdocs/images/
+endef
+
+NODOGSPLASH_POST_INSTALL_TARGET_HOOKS += NODOGSPLASH_INSTALL_EXTRA_FILES
+
+define NODOGSPLASH_INSTALL_TARGET_CMDS
+ $(INSTALL) -D -m 0755 $(@D)/nodogsplash $(TARGET_DIR)/usr/bin
+ $(INSTALL) -D -m 0755 $(@D)/ndsctl $(TARGET_DIR)/usr/bin
+
+endef
+
+$(eval $(generic-package))
+
--
2.17.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2022-01-02 18:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-02 18:15 azxxza22 [this message]
2022-01-02 18:15 ` [Buildroot] [PATCH 2/2] hash file added azxxza22
2022-01-07 18:53 ` Thomas Petazzoni
2022-01-07 18:51 ` [Buildroot] [PATCH 1/2] nodogsplash package added Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220102181525.9494-1-amrtmoh2006@gmail.com \
--to=amrtmoh2006@gmail.com \
--cc=buildroot@buildroot.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox