FreeBSD Bugzilla – Attachment 155231 Details for
Bug 199137
www/e2guardian: port always build with debug support. Start script missing
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
update startup script using rc-scripting guide
e2guardian_3.0.4_1a.diff (text/plain), 2.42 KB, created by
marcellocoutinho
on 2015-04-06 14:48:49 UTC
(
hide
)
Description:
update startup script using rc-scripting guide
Filename:
MIME Type:
Creator:
marcellocoutinho
Created:
2015-04-06 14:48:49 UTC
Size:
2.42 KB
patch
obsolete
>diff -Nru e2guardian.orig/Makefile e2guardian/Makefile >--- e2guardian.orig/Makefile 2015-04-06 05:56:04.498743136 -0300 >+++ e2guardian/Makefile 2015-04-06 08:29:43.052894012 -0300 >@@ -3,6 +3,7 @@ > > PORTNAME= e2guardian > PORTVERSION= 3.0.4 >+PORTREVISION= 1 > CATEGORIES= www > MASTER_SITES= GH > >@@ -17,6 +18,7 @@ > USE_GITHUB= yes > GH_TAGNAME= ${PORTVERSION:S/^/v/} > USES= pkgconfig iconv >+USE_RC_SUBR= e2guardian > HAS_CONFIGURE= yes > USE_AUTOTOOLS= aclocal libtoolize autoheader automake autoconf > ACLOCAL_ARGS= -I m4 >@@ -65,7 +67,7 @@ > NTLM_USES= iconv > DNS_CONFIGURE_ENABLE= dnsauth > EMAIL_CONFIGURE_ENABLE= email >-DEBUG_CONFIGURE_WITH= dgdebug >+DEBUG_CONFIGURE_ON= --with-dgdebug=on > 1024_CONFIGURE_ON= --with-filedescriptors=1024 > 2048_CONFIGURE_ON= --with-filedescriptors=2048 > 4096_CONFIGURE_ON= --with-filedescriptors=4096 >@@ -86,6 +88,18 @@ > PLIST_SUB+= SCANNERS="@comment " > .endif > >+post-extract: >+.if ${PORT_OPTIONS:M2048} || ${PORT_OPTIONS:M4096} || ${PORT_OPTIONS:M8192} >+ @${ECHO_MSG} "" >+ @${ECHO_MSG} "######################################################" >+ @${ECHO_MSG} "WARNING! Filedescriptors option higher then 1024." >+ @${ECHO_MSG} "Check/raise FD_SETSIZE in /usr/include/sys/select.h" >+ @${ECHO_MSG} "before preceeding with e2guardian compilation" >+ @${ECHO_MSG} "######################################################" >+ @${ECHO_MSG} "" >+ @sleep 3 >+.endif >+ > post-install: > @${FIND} ${STAGEDIR}${ETCDIR} -type f \ > \( -name '*.conf' -or -name '*list' \) -exec ${MV} {} {}.sample \; >diff -Nru e2guardian.orig/files/e2guardian.in e2guardian/files/e2guardian.in >--- e2guardian.orig/files/e2guardian.in 1969-12-31 21:00:00.000000000 -0300 >+++ e2guardian/files/e2guardian.in 2015-04-06 08:40:20.686432073 -0300 >@@ -0,0 +1,34 @@ >+#!/bin/sh >+# >+# $FreeBSD$ >+# >+ >+# PROVIDE: e2guardian >+# REQUIRE: NETWORKING SERVERS >+# BEFORE: DAEMON >+# KEYWORD: shutdown >+ >+# >+# Add the following line to /etc/rc.conf to enable e2guardian: >+# e2guardian_enable (bool): Set to "NO" by default. >+# Set it to "YES" to enable e2guardian. >+# e2guardian_flags (text): Set e2guardian extra flags >+ >+. /etc/rc.subr >+ >+name=e2guardian >+rcvar=e2guardian_enable >+desc="e2guardian startup script" >+ >+load_rc_config $name >+ >+: ${e2guardian_enable:=NO} >+: ${e2guardian_config="%%PREFIX%%/etc/${name}/${name}.conf"} >+ >+command=%%PREFIX%%/sbin/${name} >+pidfile=/var/run/${name}.pid >+ >+command_args="-p $pidfile -f $e2guardian_config $e2guardian_flags" >+ >+run_rc_command "$1" >+
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 199137
:
155227
|
155229
|
155231
|
155233