-optional_depends gettext \
- "--enable-nls" \
- "--disable-nls" \
- "for Native Language Support" &&
+# use gettext functions from libc built with gettext support for static
binary
+if list_find "$BURP_OPTS" "--enable-static"; then
+ list_add BURP_OPTS "--disable-nls"
+else
+ optional_depends gettext \
+ "--enable-nls" \
+ "--disable-nls" \
+ "for Native Language Support"
+fi &&
optional_depends tcp_wrappers \
"--with-tcp-wrappers" \
diff --git a/archive/burp/HISTORY b/archive/burp/HISTORY
index 8c0f43c..987418a 100644
--- a/archive/burp/HISTORY
+++ b/archive/burp/HISTORY
@@ -1,3 +1,9 @@
+2013-02-16 Vlad Glagolev <stealth AT sourcemage.org>
+ * CONFIGURE: added option for static build
+ * DEPENDS: fixed gettext dependency for static build
+ * PRE_BUILD: fixed static build
+ * init.d/burp{,.conf}: include option to use statically linked binary
+
2013-01-30 Vlad Glagolev <stealth AT sourcemage.org>
* DETAILS: updated spell to 1.3.24 (devel)
diff --git a/archive/burp/PRE_BUILD b/archive/burp/PRE_BUILD
index 20e4394..54bd406 100755
--- a/archive/burp/PRE_BUILD
+++ b/archive/burp/PRE_BUILD
@@ -1,6 +1,9 @@
default_pre_build &&
cd "$SOURCE_DIRECTORY" &&
+# remove non-required library from deprecated linking lines of Makefile
+sedit "s:-lgpm::g" src/Makefile.in &&
+
if [[ $INIT_INSTALLED ]]; then
sedit "s:^# user=.*:user=burp:" configs/server/burp.conf &&
sedit "s:^# group=.*:group=burp:" configs/server/burp.conf &&
diff --git a/archive/burp/init.d/burp b/archive/burp/init.d/burp
index a75f4cd..ee9fc89 100755
--- a/archive/burp/init.d/burp
+++ b/archive/burp/init.d/burp
@@ -2,7 +2,12 @@
. /etc/sysconfig/burp
-PROGRAM=/usr/sbin/burp
+if [[ $STATIC == "yes" ]] && [[ -x /usr/sbin/static-burp ]]; then
+ PROGRAM=/usr/sbin/static-burp
+else
+ PROGRAM=/usr/sbin/burp
+fi
+
PIDFILE=/var/run/burp/server.pid
ARGS="-c /etc/burp/burp-server.conf $BURP_ARGS"
RUNLEVEL=3
diff --git a/archive/burp/init.d/burp.conf b/archive/burp/init.d/burp.conf
index 69725ef..c58c63f 100644
--- a/archive/burp/init.d/burp.conf
+++ b/archive/burp/init.d/burp.conf
@@ -1,3 +1,6 @@
# For the arguments and description see burp(8)
BURP_ARGS=""
+
+# Set this to STATIC="yes" to use statically linked binary (if you enabled
it on cast)
+STATIC=
diff --git a/crypto/nss/DETAILS b/crypto/nss/DETAILS
index bebe74e..927790b 100755
--- a/crypto/nss/DETAILS
+++ b/crypto/nss/DETAILS
@@ -10,11 +10,12 @@ case $NSS_BRANCH in
SOURCE=$SPELL-$VERSION.tar.gz