Index: head/ftp/vsftpd/Makefile =================================================================== --- head/ftp/vsftpd/Makefile (revision 531849) +++ head/ftp/vsftpd/Makefile (revision 531850) @@ -1,106 +1,106 @@ # Created by: Neil Blakey-Milner # $FreeBSD$ PORTNAME= vsftpd PORTVERSION= 3.0.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ftp MASTER_SITES= https://security.appspot.com/downloads/ \ GENTOO PKGNAMESUFFIX?= ${SSL_SUFFIX}${PKGNAMESUFFIX2} MAINTAINER= dinoex@FreeBSD.org COMMENT= FTP daemon that aims to be "very secure" LICENSE= GPLv2 #USERS= ftp #GROUPS= ftp USES= alias ALL_TARGET= vsftpd USE_RC_SUBR= vsftpd DOCFILES= AUDIT BENCHMARKS BUGS Changelog FAQ INSTALL LICENSE \ README README.security README.ssl REFS REWARD \ SIZE SPEED TODO TUNING OPTIONS_DEFINE= VSFTPD_SSL PIDFILE STACKPROTECTOR DOCS OPTIONS_DEFAULT?= VSFTPD_SSL STACKPROTECTOR NO_OPTIONS_SORT=yes VSFTPD_SSL_DESC=Include support for SSL PIDFILE_DESC= Unofficial support for pidfile STACKPROTECTOR_DESC= Build with stack-protector .include .if ${PORT_OPTIONS:MVSFTPD_SSL} && !defined(WITHOUT_SSL) USES+= ssl SSL_SUFFIX= -ssl CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} .endif .if ${PORT_OPTIONS:MPIDFILE} EXTRA_PATCHES+= ${FILESDIR}/pidfile.patch .endif VSFTPD_OPTIMIZED= ${CFLAGS:M-O*} .if defined(CFLAGS) && !empty(VSFTPD_OPTIMIZED) VSFTPD_NO_OPTIMIZED= -e "s|-O2 ||" .endif .if ${PORT_OPTIONS:MSTACKPROTECTOR} # BROKEN on FreeBSD with undefined reference to `__stack_chk_fail_local' VSFTPD_LIBS= -lssp_nonshared .else VSFTPD_NO_SSP= -e "s|-fstack-protector --param=ssp-buffer-size=4 ||" .endif do-configure: .if ${PORT_OPTIONS:MVSFTPD_SSL} && !defined(WITHOUT_SSL) ${REINPLACE_CMD} -e \ "s|#undef VSF_BUILD_TCPWRAPPERS|#define VSF_BUILD_TCPWRAPPERS 1|" \ -e "s|#undef VSF_BUILD_SSL|#define VSF_BUILD_SSL 1|" \ ${WRKSRC}/builddefs.h .else ${REINPLACE_CMD} -e \ "s|#undef VSF_BUILD_TCPWRAPPERS|#define VSF_BUILD_TCPWRAPPERS 1|" \ ${WRKSRC}/builddefs.h .endif ${REINPLACE_CMD} -e "s|^listen=.*|listen=NO|" \ -e "s|/etc/vsftpd.conf|${PREFIX}/etc/vsftpd.conf|" \ ${WRKSRC}/defs.h ${WRKSRC}/vsftpd.conf ${REINPLACE_CMD} -e "s|/etc/v|${PREFIX}/etc/v|" \ ${WRKSRC}/vsftpd.8 ${WRKSRC}/vsftpd.conf.5 ${WRKSRC}/tunables.c ${REINPLACE_CMD} ${VSFTPD_NO_OPTIMIZED} ${VSFTPD_NO_SSP} \ -e "s|^CC = gcc|CC = ${CC}|" \ -e "s|^CFLAGS = |CFLAGS = ${CFLAGS} |" \ -e "s|^LDFLAGS = |LDFLAGS = ${LDFLAGS} |" \ -e "s| -Wl,-s| ${VSFTPD_LIBS}|" \ ${WRKSRC}/Makefile ${REINPLACE_CMD} -e '/-lutil/d' ${WRKSRC}/vsf_findlibs.sh @${ECHO_CMD} "secure_chroot_dir=${PREFIX}/share/vsftpd/empty" >> \ ${WRKSRC}/vsftpd.conf @${ECHO_CMD} >>${WRKSRC}/vsftpd.conf "" @${ECHO_CMD} >>${WRKSRC}/vsftpd.conf \ "# If using vsftpd in standalone mode, uncomment the next two lines:" @${ECHO_CMD} >>${WRKSRC}/vsftpd.conf "# listen=YES" @${ECHO_CMD} >>${WRKSRC}/vsftpd.conf "# background=YES" do-install: ${INSTALL_PROGRAM} ${WRKSRC}/vsftpd ${STAGEDIR}${PREFIX}/libexec/ ${INSTALL_DATA} ${WRKSRC}/vsftpd.conf ${STAGEDIR}${PREFIX}/etc/vsftpd.conf.dist ${INSTALL_MAN} ${WRKSRC}/vsftpd.conf.5 ${STAGEDIR}${PREFIX}/man/man5/ ${INSTALL_MAN} ${WRKSRC}/vsftpd.8 ${STAGEDIR}${PREFIX}/man/man8/ ${MKDIR} ${STAGEDIR}/var/ftp ${STAGEDIR}${PREFIX}/share/vsftpd/empty do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DOCFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ .for i in EXAMPLE SECURITY ${MKDIR} ${STAGEDIR}${DOCSDIR}/${i} ${CP} -p -R -L ${WRKSRC}/${i}/./ ${STAGEDIR}${DOCSDIR}/${i}/ ${CHMOD} -R -L a+rX,go-w ${STAGEDIR}${DOCSDIR}/${i}/ .endfor .include Index: head/ftp/vsftpd/files/vsftpd.in =================================================================== --- head/ftp/vsftpd/files/vsftpd.in (revision 531849) +++ head/ftp/vsftpd/files/vsftpd.in (revision 531850) @@ -1,54 +1,55 @@ #!/bin/sh # # $FreeBSD$ # - # PROVIDE: vsftpd # REQUIRE: DAEMON - +# KEYWORD: shutdown +# # To enable 'vsftpd' in standalone mode, you need to edit two files. # 1. add the following line(s) to /etc/rc.conf to enable `vsftpd': # # vsftpd_enable="YES" # vsftpd_flags="-ooption=value" # Not required # vsftpd_config="/some/path/conf.file" # Not required # # 2. tell vsftpd about standalone mode # Edit %%PREFIX%%/etc/vsftpd.conf (or /some/path/conf.file) to contain # # listen=YES # background=YES # # Samples are provided at the end of the configuration file. . /etc/rc.subr name="vsftpd" +desc="Vsftpd FTP Server" rcvar="vsftpd_enable" load_rc_config "$name" + : ${vsftpd_enable:="NO"} : ${vsftpd_config:="%%PREFIX%%/etc/$name.conf"} - command="%%PREFIX%%/libexec/$name" required_files="${vsftpd_config}" start_precmd="vsftpd_check" extra_commands="reload" vsftpd_check() { if grep -q "^ftp[ ]" /etc/inetd.conf then err 1 "ftp is already activated in /etc/inetd.conf" fi if ! egrep -q -i -E "^listen.*=.*YES$" ${vsftpd_config} then err 1 'vsftpd script need "listen=YES" in config file' fi if ! egrep -q -i -E "^background.*=.*YES$" ${vsftpd_config} then err 1 'vsftpd script need "background=YES" in config file' fi } run_rc_command "$1" Index: head/irc/iroffer-dinoex/Makefile =================================================================== --- head/irc/iroffer-dinoex/Makefile (revision 531849) +++ head/irc/iroffer-dinoex/Makefile (revision 531850) @@ -1,90 +1,91 @@ # $FreeBSD$ PORTNAME= iroffer PORTVERSION= 3.32 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= irc MASTER_SITES= https://iroffer.net/ PKGNAMESUFFIX= -dinoex${PKGNAMESUFFIX2} DISTNAME= iroffer-dinoex-${PORTVERSION} MAINTAINER= dinoex@FreeBSD.org COMMENT= IRC "bot" that makes sharing files via DCC extremely easy LICENSE= GPLv2 CONFLICTS= iroffer-1* iroffer-lamm-1.* USES= ssl HAS_CONFIGURE= yes CONFIGURE_SCRIPT= Configure CONFIGURE_ARGS= CC="${CC}" LDFLAGS="${LDFLAGS}" LOCALBASE="${LOCALBASE}" CONFIGURE_ENV= LANG=en_EN.UTF-8 +MAKE_ENV= LANG=en_EN.UTF-8 ALL_TARGET= all-lang doc -USE_RC_SUBR= iroffer-dinoex +USE_RC_SUBR= iroffer IROFFER_DOCS= README README.modDinoex LIESMICH.modDinoex \ LICENSE THANKS TODO \ help-admin-de.txt help-admin-en.txt \ help-admin-fr.txt help-admin-it.txt \ doc/iroffer.1.txt doc/iroffer.1.html doc/iroffer.1.ps \ doc/INSTALL-linux-de.html doc/INSTALL-linux-de.txt \ doc/INSTALL-linux-en.html doc/INSTALL-linux-en.txt \ doc/INSTALL-linux-fr.html doc/INSTALL-linux-fr.txt \ doc/INSTALL-linux-it.html doc/INSTALL-linux-it.txt \ doc/INSTALL-vhost-de.html doc/INSTALL-vhost-de.txt \ doc/INSTALL-vhost-en.html doc/INSTALL-vhost-en.txt \ doc/INSTALL-vhost-fr.html doc/INSTALL-vhost-fr.txt IROFFER_EXAMPLES= iroffer.cron \ sample.config beispiel.config exemple.config \ header.html footer.html ruby-sample.rb IROFFER_HTDOCS= iroffer-state.css robots.txt \ info.txt.rb json.txt.rb md5.txt.rb sfv.txt.rb OPTIONS_DEFINE= CURL RUBY UPNP GEOIP DOCS EXAMPLES OPTIONS_DEFAULT=CURL RUBY UPNP GEOIP CURL_LIB_DEPENDS= libcurl.so:ftp/curl CURL_CONFIGURE_ON= -curl RUBY_USE= RUBY=yes RUBY_LIB_DEPENDS= lib${RUBY_NAME}.so:${RUBY_PORT} RUBY_CONFIGURE_ON= -ruby UPNP_LIB_DEPENDS= libminiupnpc.so:net/miniupnpc UPNP_CONFIGURE_ON= -upnp GEOIP_LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb GEOIP_CONFIGURE_ON= -geoip .include .if ${PORT_OPTIONS:MRUBY} # make stage-qa happy # keep in sync with all platforms where libunwind is available .if (${ARCH} == amd64 || ${ARCH} == i386) LIB_DEPENDS+= libunwind.so:devel/libunwind .endif .endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/iroffer ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_PROGRAM} ${WRKSRC}/iroffer-de ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_PROGRAM} ${WRKSRC}/iroffer-it ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_PROGRAM} ${WRKSRC}/iroffer-fr ${STAGEDIR}${PREFIX}/bin/ ${INSTALL_MAN} ${WRKSRC}/iroffer.1 ${STAGEDIR}${PREFIX}/man/man1/ ${INSTALL_MAN} ${WRKSRC}/xdcc.7 ${STAGEDIR}${PREFIX}/man/man7/ do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${IROFFER_DOCS} ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/ .endfor do-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/htdocs .for i in ${IROFFER_HTDOCS} ${INSTALL_DATA} ${WRKSRC}/htdocs/${i} ${STAGEDIR}${EXAMPLESDIR}/htdocs/ .endfor .for i in ${IROFFER_EXAMPLES} ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${EXAMPLESDIR}/ .endfor .include Index: head/irc/iroffer-dinoex/files/iroffer-dinoex.in =================================================================== --- head/irc/iroffer-dinoex/files/iroffer-dinoex.in (revision 531849) +++ head/irc/iroffer-dinoex/files/iroffer-dinoex.in (nonexistent) @@ -1,59 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: iroffer -# REQUIRE: LOGIN -# KEYWORD: shutdown - -# -# iroffer_enable="YES" -# iroffer_flags="" -# iroffer_user="" -# iroffer_bin="" -# iroffer_dir="" -# iroffer_config="" -# -# See iroffer(1) for iroffer_flags -# - -. /etc/rc.subr - -name="iroffer" -rcvar=iroffer_enable - -# read configuration and set defaults -load_rc_config "$name" -: ${iroffer_enable="NO"} -: ${iroffer_user="bot"} -: ${iroffer_bin="iroffer"} -: ${iroffer_dir="/home/bot/iroffer/"} -: ${iroffer_config="${iroffer_dir}mybot.config"} - -start_precmd="iroffer_checkdisk" -restart_precmd="iroffer_checkdisk" - -iroffer_checkdisk() -{ - cd "${iroffer_dir}" - if [ -n "${iroffer_dir}" ]; then - freespace=`df -k . | tail -1 | awk {'print $4'}` - if [ "${freespace}" -lt 10 ]; then - echo "Filesystem Full!" >&2 - exit - fi - fi -} - -required_files="${iroffer_config}" -command="${iroffer_dir}/${iroffer_bin}" -if [ -n "${iroffer_dir}" ]; then - command_args="${command_args} -w ${iroffer_dir}" -fi -command_args="${command_args} -u ${iroffer_user}" -command_args="${command_args} -b ${iroffer_config}" -pidfile="${iroffer_dir}/mybot.pid" -run_rc_command "$1" - -# eof Property changes on: head/irc/iroffer-dinoex/files/iroffer-dinoex.in ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/irc/iroffer-dinoex/files/iroffer.in =================================================================== --- head/irc/iroffer-dinoex/files/iroffer.in (nonexistent) +++ head/irc/iroffer-dinoex/files/iroffer.in (revision 531850) @@ -0,0 +1,56 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: iroffer +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# iroffer_enable="YES" +# iroffer_flags="" +# iroffer_user="" +# iroffer_bin="" +# iroffer_dir="" +# iroffer_config="" +# +# See iroffer(1) for iroffer_flags +# + +. /etc/rc.subr + +name="iroffer" +desc="Iroffer IRC Bot" +rcvar="iroffer_enable" + +load_rc_config "$name" + +: ${iroffer_enable:="NO"} +: ${iroffer_user:="bot"} +: ${iroffer_bin:="iroffer"} +: ${iroffer_dir:="/home/bot/iroffer/"} +: ${iroffer_config:="${iroffer_dir}mybot.config"} + +start_precmd="iroffer_checkdisk" +restart_precmd="iroffer_checkdisk" +required_files="${iroffer_config}" +command="${iroffer_dir}/${iroffer_bin}" +if [ -n "${iroffer_dir}" ]; then + command_args="${command_args} -w ${iroffer_dir}" +fi +command_args="${command_args} -u ${iroffer_user}" +command_args="${command_args} -b ${iroffer_config}" +pidfile="${iroffer_dir}/mybot.pid" + +iroffer_checkdisk() +{ + cd "${iroffer_dir}" + if [ -n "${iroffer_dir}" ]; then + freespace=`df -k . | tail -1 | awk {'print $4'}` + if [ "${freespace}" -lt 10 ]; then + echo "Filesystem Full!" >&2 + exit + fi + fi +} + +run_rc_command "$1" Property changes on: head/irc/iroffer-dinoex/files/iroffer.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/mail/antivirus-milter/Makefile =================================================================== --- head/mail/antivirus-milter/Makefile (revision 531849) +++ head/mail/antivirus-milter/Makefile (revision 531850) @@ -1,53 +1,53 @@ # $FreeBSD$ PORTNAME= antivirus PORTVERSION= 3.30 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= mail MASTER_SITES= LOCAL/dinoex MAINTAINER= dinoex@FreeBSD.org COMMENT= Sendmail milter wich uses McAfee Virus Scan or clamav LICENSE= BSD2CLAUSE CFLAGS+= -Wall LIBS+= -lmilter -lpthread PLIST_SUB+= ANTIVIRUS=${ANTIVIRUS_DIR} SUB_LIST+= ANTIVIRUS=${ANTIVIRUS_DIR} SED_SCRIPT= -e 's|%%ANTIVIRUS%%|${ANTIVIRUS_DIR}|g' \ -e 's|%%PREFIX%%|${PREFIX}|g' -USE_RC_SUBR= antivirus-milter +USE_RC_SUBR= antivirus ANTIVIRUS_DIR?= /var/spool/antivirus .include .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" LIBS+= ${LDFLAGS} MAKE_ENV+= SENDMAILBASE="${MILTERBASE}" \ SENDMAILOBJ="${MILTERBASE}" \ LIBS="${LIBS}" do-configure: @${REINPLACE_CMD} -e 's|/etc/mail/antivirus.conf|${LOCALBASE}/etc/antivirus.conf|' \ ${CONFIGURE_WRKSRC}/antivirus.c @${SED} ${SED_SCRIPT} ${FILESDIR}/antivirus.conf \ > ${WRKSRC}/antivirus.conf @${SED} ${SED_SCRIPT} ${FILESDIR}/clamav.conf \ > ${WRKSRC}/clamav.conf do-install: ${INSTALL_PROGRAM} ${WRKSRC}/antivirus \ ${STAGEDIR}${PREFIX}/libexec/antivirus ${INSTALL_DATA} ${WRKSRC}/antivirus.conf \ ${STAGEDIR}${PREFIX}/etc/antivirus.conf-dist ${INSTALL_DATA} ${WRKSRC}/clamav.conf \ ${STAGEDIR}${PREFIX}/etc/antivirus.conf-clamav ${MKDIR} ${STAGEDIR}${ANTIVIRUS_DIR}/spool ${STAGEDIR}${ANTIVIRUS_DIR}/run ${STAGEDIR}${ANTIVIRUS_DIR}/quarantine @${ECHO_MSG} "Add to your *.mc configfile:" @${ECHO_MSG} "INPUT_MAIL_FILTER(\`antivirus', \`S=local:${ANTIVIRUS_DIR}/antivirus.sock, F=')" .include Index: head/mail/antivirus-milter/files/antivirus-milter.in =================================================================== --- head/mail/antivirus-milter/files/antivirus-milter.in (revision 531849) +++ head/mail/antivirus-milter/files/antivirus-milter.in (nonexistent) @@ -1,47 +0,0 @@ -#!/bin/sh - -# $FreeBSD$ - -# Start or stop antivirus - -# PROVIDE: antivirus -# REQUIRE: DAEMON -# BEFORE: mail -# KEYWORD: shutdown -# - -# Define these antivirus_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/antivirus -# -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -antivirus_enable=${antivirus_enable:-"NO"} # Enable antivirus-milter -antivirus_pidfile=${antivirus_pidfile:-"%%ANTIVIRUS%%/run/antivirus.pid"} # Path to pidfile -antivirus_socket=${antivirus_socket:-"%%ANTIVIRUS%%/antivirus.sock"} # Path to socket -#antivirus_flags=${antivirus_flags:-""} # Flags to antivirus - -. /etc/rc.subr - -name="antivirus" -rcvar="antivirus_enable" -command="%%PREFIX%%/libexec/antivirus" -required_files="%%PREFIX%%/etc/antivirus.conf" -start_precmd="antivirus_prestart" -stop_postcmd="antivirus_poststop" - -antivirus_prestart() { - /bin/rm -f "${pidfile}" "${antivirus_socket}" -} - -antivirus_poststop() { - /bin/rm -f "${pidfile}" "${antivirus_socket}" -} - -load_rc_config $name - -pidfile="${antivirus_pidfile}" -command_args="-p local:${antivirus_socket} ${antivirus_flags}" - -run_rc_command "$1" Property changes on: head/mail/antivirus-milter/files/antivirus-milter.in ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/mail/antivirus-milter/files/antivirus.in =================================================================== --- head/mail/antivirus-milter/files/antivirus.in (nonexistent) +++ head/mail/antivirus-milter/files/antivirus.in (revision 531850) @@ -0,0 +1,49 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Start or stop antivirus +# +# PROVIDE: antivirus +# REQUIRE: DAEMON +# BEFORE: mail +# KEYWORD: shutdown +# +# +# Define these antivirus_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/antivirus +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# + +. /etc/rc.subr + +name="antivirus" +desc="Antivirus Milter Daemon" +rcvar="antivirus_enable" + +load_rc_config $name + +: ${antivirus_enable:="NO"} +: ${antivirus_pidfile:="%%ANTIVIRUS%%/run/antivirus.pid"} +: ${antivirus_socket:="%%ANTIVIRUS%%/antivirus.sock"} +command="%%PREFIX%%/libexec/antivirus" +command_args="-p local:${antivirus_socket} ${antivirus_flags}" +pidfile="${antivirus_pidfile}" +required_files="%%PREFIX%%/etc/antivirus.conf" +start_precmd="antivirus_prestart" +stop_postcmd="antivirus_poststop" + +antivirus_prestart() +{ + /bin/rm -f "${pidfile}" "${antivirus_socket}" +} + +antivirus_poststop() +{ + /bin/rm -f "${pidfile}" "${antivirus_socket}" +} + +run_rc_command "$1" Property changes on: head/mail/antivirus-milter/files/antivirus.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/mail/archivesmtp/Makefile =================================================================== --- head/mail/archivesmtp/Makefile (revision 531849) +++ head/mail/archivesmtp/Makefile (revision 531850) @@ -1,44 +1,44 @@ # Created by: Netherby # $FreeBSD$ PORTNAME= archivesmtp PORTVERSION= 1.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= http://www.dancingfortune.com/projects/archivesmtp/files/ MAINTAINER= ports@FreeBSD.org COMMENT= SMTP mail archiver LIBS+= -lmilter -lpthread MAKE_ENV+= LDADD="${LIBS}" USE_RC_SUBR= archivesmtp SUB_FILES= pkg-message SUB_LIST+= SOCKETBASE="${SOCKETBASE}"\ SOCKETDIR="${SOCKETDIR}" PLIST_SUB+= ${SUB_LIST} # Path for unix/local socket (by default also used for pid file) SOCKETBASE?= /var/run SOCKETDIR?= archivesmtp .include # Sets up libmilter dependencies and options .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" pre-build: # Copy BSD Makefiles into build tree ${CP} ${FILESDIR}/top-Makefile ${WRKSRC}/Makefile ${CP} ${FILESDIR}/src-Makefile ${WRKSRC}/src/Makefile do-install: ${INSTALL} -s ${WRKSRC}/src/archivesmtp ${STAGEDIR}${PREFIX}/sbin ${INSTALL_MAN} ${WRKSRC}/src/archivesmtp.8 ${STAGEDIR}${PREFIX}/man/man8 # Install sample configuration file ${INSTALL_DATA} ${WRKSRC}/src/archivesmtp.conf.sample ${STAGEDIR}${PREFIX}/etc # Create socket directory @${MKDIR} ${STAGEDIR}${SOCKETBASE}/${SOCKETDIR} .include Index: head/mail/archivesmtp/files/archivesmtp.in =================================================================== --- head/mail/archivesmtp/files/archivesmtp.in (revision 531849) +++ head/mail/archivesmtp/files/archivesmtp.in (revision 531850) @@ -1,30 +1,29 @@ #!/bin/sh - +# # $FreeBSD$ # # PROVIDE: archivesmtp +# REQUIRE: DAEMON # BEFORE: mail # KEYWORD: shutdown . /etc/rc.subr name="archivesmtp" -rcvar=`set_rcvar` +desc="Achive SMTP Milter Daemon" +rcvar="archivesmtp_enable" -command="%%PREFIX%%/sbin/${name}" - # Read settings and set defaults load_rc_config "$name" -: ${archivesmtp_enable="NO"} -: ${archivesmtp_chuser="nobody"} -: ${archivesmtp_socket="unix:%%SOCKETBASE%%/%%SOCKETDIR%%/mta.sock"} -: ${archivesmtp_config="%%PREFIX%%/etc/archivesmtp.conf"} -: ${archivesmtp_pidfile="%%SOCKETBASE%%/%%SOCKETDIR%%/run.pid"} +: ${archivesmtp_enable:="NO"} +: ${archivesmtp_chuser:="nobody"} +: ${archivesmtp_socket:="unix:%%SOCKETBASE%%/%%SOCKETDIR%%/mta.sock"} +: ${archivesmtp_config:="%%PREFIX%%/etc/archivesmtp.conf"} +: ${archivesmtp_pidfile:="%%SOCKETBASE%%/%%SOCKETDIR%%/run.pid"} # archivesmtp_flags= May be used to set optional behaviours. - +command="%%PREFIX%%/sbin/${name}" pidfile="${archivesmtp_pidfile}" - command_args="-p ${archivesmtp_socket} -f ${archivesmtp_config} -u ${archivesmtp_chuser} -r ${archivesmtp_pidfile} ${archivesmtp_flags} &" run_rc_command "$1" Index: head/mail/milter-regex/Makefile =================================================================== --- head/mail/milter-regex/Makefile (revision 531849) +++ head/mail/milter-regex/Makefile (revision 531850) @@ -1,44 +1,45 @@ # Created by: trevor # $FreeBSD$ PORTNAME= milter-regex PORTVERSION= 2.7 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= https://www.benzedrine.ch/ MAINTAINER= dinoex@FreeBSD.org COMMENT= Milter plugin to sendmail for regular expression filtering LICENSE= BSD2CLAUSE LICENSE_FILE= ${FILESDIR}/COPYRIGHT USE_RC_SUBR= milterregex SUB_LIST= SPOOLDIR=${SPOOLDIR} PLIST_SUB= SPOOLDIR=${SPOOLDIR} MAILUSER?= mailnull SPOOLDIR?= /var/run/milter-regex .include .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" post-patch: ${REINPLACE_CMD} -e \ "s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \ s:/var/spool/milter-regex:${SPOOLDIR}:g; \ s:_milter-regex:${MAILUSER}:g;" ${WRKSRC}/milter-regex.c ${REINPLACE_CMD} -e \ "s:/etc/milter-regex.conf:${PREFIX}/etc/milter-regex.conf:g; \ s:/var/spool/milter-regex:${SPOOLDIR}:g; \ s:mailstats 1:mailstats 8:;" ${WRKSRC}/milter-regex.8 ${REINPLACE_CMD} -e "s:-I/usr/src/gnu/usr.sbin/sendmail/include::g; \ s:-L/usr/local/lib:-L${LOCALBASE}/lib:g; \ s/-Werror//g" ${WRKSRC}/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/milter-regex ${STAGEDIR}${PREFIX}/libexec/ ${INSTALL_MAN} ${WRKSRC}/milter-regex.8 ${STAGEDIR}${PREFIX}/man/man8/ ${MKDIR} ${STAGEDIR}${SPOOLDIR} .include Index: head/mail/milter-regex/files/milterregex.in =================================================================== --- head/mail/milter-regex/files/milterregex.in (revision 531849) +++ head/mail/milter-regex/files/milterregex.in (revision 531850) @@ -1,40 +1,39 @@ #!/bin/sh # $FreeBSD$ - -# Start or stop milterregex - +# # PROVIDE: milterregex # REQUIRE: DAEMON # BEFORE: mail # KEYWORD: shutdown - -spooldir=%%SPOOLDIR%% - +# # Define these milterregex_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/milterregex # # DO NOT CHANGE THESE DEFAULT VALUES HERE # # milterregex_flags Flags to milter-regex program -[ -z "$milterregex_enable" ] && milterregex_enable="NO" # Enable milter-regex - . /etc/rc.subr name="milterregex" +desc="RegEx Milter Daemon" rcvar="milterregex_enable" + +load_rc_config $name + +: ${milterregex_enable:="NO"} command="%%PREFIX%%/libexec/milter-regex" -pidfile="${spooldir}/milter-regex.pid" +pidfile="%%SPOOLDIR%%/milter-regex.pid" required_files="%%PREFIX%%/etc/milter-regex.conf" stop_postcmd="milterregex_poststop" command_args="-r ${pidfile}" -milterregex_poststop() { +milterregex_poststop() +{ /bin/rm -f ${pidfile} } -load_rc_config $name run_rc_command "$1" Index: head/mail/noattach/Makefile =================================================================== --- head/mail/noattach/Makefile (revision 531849) +++ head/mail/noattach/Makefile (revision 531850) @@ -1,44 +1,44 @@ # $FreeBSD$ PORTNAME= noattach PORTVERSION= 1.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail MASTER_SITES= ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/ MAINTAINER= dinoex@FreeBSD.org COMMENT= Attachment filter for Sendmail Milter GNU_CONFIGURE= yes USE_RC_SUBR= noattach DOCSFILES= AUTHORS THANKS INSTALL NEWS README TODO ChangeLog SAMPLEFILES= README noattach.patterns noattach.patterns.johncon OPTIONS_DEFINE= DOCS EXAMPLES .include .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" CONFIGURE_ENV+= MILTER_INCLUDES="${MILTERINC}" MAKE_ENV+= MILTER_INCLUDES="${MILTERINC}" do-install: ${INSTALL_PROGRAM} ${WRKSRC}/noattach ${STAGEDIR}${PREFIX}/libexec/noattach ${INSTALL_MAN} ${WRKSRC}/noattach.8 ${STAGEDIR}${PREFIX}/man/man8/ ${INSTALL_DATA} ${WRKSRC}/examples/noattach.patterns \ ${STAGEDIR}${PREFIX}/etc/noattach.patterns-dist do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${DOCSFILES} ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/ .endfor do-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for i in ${SAMPLEFILES} ${INSTALL_DATA} ${WRKSRC}/examples/${i} ${STAGEDIR}${EXAMPLESDIR}/ .endfor .include Index: head/mail/noattach/files/noattach.in =================================================================== --- head/mail/noattach/files/noattach.in (revision 531849) +++ head/mail/noattach/files/noattach.in (revision 531850) @@ -1,53 +1,57 @@ #!/bin/sh # $FreeBSD$ # Start or stop noattach # PROVIDE: noattach # REQUIRE: DAEMON # BEFORE: mail # KEYWORD: shutdown # # Define these noattach_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/noattach # # DO NOT CHANGE THESE DEFAULT VALUES HERE # # noattach_flags Flags to noattach -noattach_enable=${noattach_enable:-"NO"} # Enable noattach -noattach_pidfile=${noattach_pidfile:-"/var/run/noattach.pid"} # Path to pidfile -noattach_socket=${noattach_socket:-"/var/run/noattach"} # Path to socket - . /etc/rc.subr name="noattach" +desc="Noattach Milter Daemon" rcvar="noattach_enable" + +load_rc_config $name + +: ${noattach_enable:="NO"} +: ${noattach_pidfile:="/var/run/noattach.pid"} +: ${noattach_socket:="/var/run/noattach"} command="%%PREFIX%%/libexec/${name}" required_files="%%PREFIX%%/etc/noattach.patterns" start_precmd="noattach_prestart" stop_postcmd="noattach_poststop" reload_cmd="noattach_reload" extra_commands="reload" +pidfile="${noattach_pidfile}" +command_args="-p local:${noattach_socket} ${noattach_flags}" -noattach_prestart() { +noattach_prestart() +{ /bin/rm -f "${pidfile}" "${noattach_socket}" } -noattach_poststop() { +noattach_poststop() +{ /bin/rm -f "${pidfile}" "${noattach_socket}" } -noattach_reload() { +noattach_reload() +{ kill -USR1 `head -1 "${pidfile}"` } - -load_rc_config $name -pidfile="${noattach_pidfile}" -command_args="-p local:${noattach_socket} ${noattach_flags}" run_rc_command "$1" Index: head/mail/rbl-milter/Makefile =================================================================== --- head/mail/rbl-milter/Makefile (revision 531849) +++ head/mail/rbl-milter/Makefile (revision 531850) @@ -1,24 +1,44 @@ -# Created by: wolpert # $FreeBSD$ -PORTNAME= rbl-milter -PORTVERSION= 0.30 -PORTREVISION= 5 +PORTNAME= noattach +PORTVERSION= 1.2 +PORTREVISION= 4 CATEGORIES= mail -MASTER_SITES= http://www.gnu-darwin.org/distfiles/ +MASTER_SITES= ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/ MAINTAINER= dinoex@FreeBSD.org -COMMENT= Milter that adds mail header warnings on mail from open-relays +COMMENT= Attachment filter for Sendmail Milter -USES= gmake GNU_CONFIGURE= yes +USE_RC_SUBR= noattach +DOCSFILES= AUTHORS THANKS INSTALL NEWS README TODO ChangeLog +SAMPLEFILES= README noattach.patterns noattach.patterns.johncon -USE_RC_SUBR= rblmilter -PLIST_FILES= sbin/rbl-milter +OPTIONS_DEFINE= DOCS EXAMPLES -CONFIGURE_ARGS+= --with-sendmail=${MILTERBASE} \ - --with-sendmail-obj=${MILTERBASE}/lib +.include -.include "${.CURDIR}/../sendmail/bsd.milter.mk" +.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" -.include +CONFIGURE_ENV+= MILTER_INCLUDES="${MILTERINC}" +MAKE_ENV+= MILTER_INCLUDES="${MILTERINC}" + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/noattach ${STAGEDIR}${PREFIX}/libexec/noattach + ${INSTALL_MAN} ${WRKSRC}/noattach.8 ${STAGEDIR}${PREFIX}/man/man8/ + ${INSTALL_DATA} ${WRKSRC}/examples/noattach.patterns \ + ${STAGEDIR}${PREFIX}/etc/noattach.patterns-dist + +do-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} +.for i in ${DOCSFILES} + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/ +.endfor + +do-install-EXAMPLES-on: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} +.for i in ${SAMPLEFILES} + ${INSTALL_DATA} ${WRKSRC}/examples/${i} ${STAGEDIR}${EXAMPLESDIR}/ +.endfor + +.include Index: head/mail/rbl-milter/files/rblmilter.in =================================================================== --- head/mail/rbl-milter/files/rblmilter.in (revision 531849) +++ head/mail/rbl-milter/files/rblmilter.in (revision 531850) @@ -1,46 +1,48 @@ #!/bin/sh - +# # $FreeBSD$ - +# # Start or stop rblmilter - +# # PROVIDE: rblmilter # REQUIRE: DAEMON # BEFORE: mail # KEYWORD: shutdown # - +# # Define these rblmilter_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/rblmilter # # DO NOT CHANGE THESE DEFAULT VALUES HERE # -rblmilter_enable=${rblmilter_enable:-"NO"} # Enable rblmilter -rblmilter_socket=${rblmilter_socket:-"/var/run/rbl-milter"} # Path to socket -rblmilter_flags=${rblmilter_flags:-"-l -r -d relays.ordb.org"} # Flags to rblmilter . /etc/rc.subr name="rblmilter" +desc="RBL Milter Daemon" rcvar="rblmilter_enable" + +load_rc_config $name + +: ${rblmilter_enable:="NO"} +: ${rblmilter_socket:="/var/run/rbl-milter"} +: ${rblmilter_flags:="-l -r -d relays.ordb.org"} command="%%PREFIX%%/sbin/rbl-milter" start_precmd="rblmilter_prestart" stop_postcmd="rblmilter_poststop" extra_commands="reload" +command_args="-p local:${rblmilter_socket} ${rblmilter_flags}" -rblmilter_prestart() { +rblmilter_prestart() +{ /bin/rm -f "${rblmilter_socket}" } -rblmilter_poststop() { +rblmilter_poststop() +{ /bin/rm -f "${rblmilter_socket}" } -load_rc_config $name -command_args="-p local:${rblmilter_socket} ${rblmilter_flags}" - run_rc_command "$1" - -# eof Index: head/mail/sid-milter/Makefile =================================================================== --- head/mail/sid-milter/Makefile (revision 531849) +++ head/mail/sid-milter/Makefile (revision 531850) @@ -1,73 +1,73 @@ # $FreeBSD$ PORTNAME= sid-milter PORTVERSION= 1.0.0 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= mail MASTER_SITES= SF/${PORTNAME}/SenderID%20Milter/${PORTVERSION} MAINTAINER= dinoex@FreeBSD.org COMMENT= Milter module for sid and spf RESTRICTED= May incorporate intellectual property, possible patent issues USES= groff # on FreeBSD 11 optimized code fails with 'MalformedDomain' CFLAGS:= ${CFLAGS:S/-O2//g} WCONF= ${WRKSRC}/devtools/Site DOCSFILES= FEATURES INSTALL KNOWNBUGS LICENSE README README-SenderID \ RELEASE_NOTES rfc4406.txt rfc4407.txt rfc4408.txt INSTALL_WRKSRC= ${WRKSRC}/sid-filter PLIST_FILES= libexec/sid-filter man/man8/sid-filter.8.gz -USE_RC_SUBR= milter-sid +USE_RC_SUBR= miltersid PORTDOCS= ${DOCSFILES} SITE+= ${FILESDIR}/site.config.m4 .if !defined(BUILDING_INDEX) IPCCHECK!= ipcrm -q 0 2>&1 || true .if ${IPCCHECK:Mimplemented} IGNORE= your system does not support sysvipc .endif .endif OPTIONS_DEFINE= LIBAR NH_MFROM DOCS LIBAR_DESC= build and install libar NH_MFROM_DESC= use NH_MFROM LIBAR_PLIST_FILES= include/libar.h lib/libar.a man/man3/ar.3.gz .include .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" .if defined(WITH_MILTER_PORT) SITE+= ${FILESDIR}/site.config.m4.milter .endif pre-configure: ${REINPLACE_CMD} -e "s|\`-O'|\`${CFLAGS}'|g" \ -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ ${WRKSRC}/devtools/OS/FreeBSD ${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \ -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \ ${SITE} > ${WCONF}/site.config.m4 pre-configure-NH_MFROM-on: ${ECHO_CMD} \ 'APPENDDEF(`confENVDEF'\'', `-D_FFR_NH_MFROM'\'')' \ >> ${WCONF}/site.config.m4 post-install: ${INSTALL_MAN} ${WRKSRC}/*/sid-filter.8 ${STAGEDIR}${PREFIX}/man/man8/ post-install-LIBAR-on: ${INSTALL_DATA} ${WRKSRC}/*/libar/libar.a ${STAGEDIR}${PREFIX}/lib/libar.a ${INSTALL_DATA} ${WRKSRC}/libar/ar.h ${STAGEDIR}${PREFIX}/include/libar.h ${INSTALL_MAN} ${WRKSRC}/*/ar.3 ${STAGEDIR}${PREFIX}/man/man3/ post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DOCSFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ .include Index: head/mail/sid-milter/files/milter-sid.in =================================================================== --- head/mail/sid-milter/files/milter-sid.in (revision 531849) +++ head/mail/sid-milter/files/milter-sid.in (nonexistent) @@ -1,43 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: miltersid -# REQUIRE: DAEMON -# BEFORE: mail localpkg - -# Define these miltersid_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/miltersid -# - -. /etc/rc.subr - -name="miltersid" -rcvar="miltersid_enable" -load_rc_config $name - -# DO NOT CHANGE THESE DEFAULT VALUES HERE -# -: ${miltersid_enable="NO"} -: ${miltersid_socket="local:/var/run/sid-filter"} -: ${miltersid_pid="/var/run/sid-filter.pid"} -: ${miltersid_flags="-r 0 -t"} - -pidfile=${miltersid_pid} -command="%%PREFIX%%/libexec/sid-filter" -command_args="-l -p ${miltersid_socket} -P ${miltersid_pid}" -start_precmd="sid_precmd" - -sid_precmd () -{ - if [ -S ${miltersid_socket##local:} ] ; then - rm -f ${miltersid_socket##local:} - elif [ -S ${miltersid_socket##unix:} ] ; then - rm -f ${miltersid_socket##unix:} - fi -} - -run_rc_command "$1" Property changes on: head/mail/sid-milter/files/milter-sid.in ___________________________________________________________________ Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:keywords ## -1 +0,0 ## -FreeBSD=%H \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/mail/sid-milter/files/miltersid.in =================================================================== --- head/mail/sid-milter/files/miltersid.in (nonexistent) +++ head/mail/sid-milter/files/miltersid.in (revision 531850) @@ -0,0 +1,44 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# +# PROVIDE: miltersid +# REQUIRE: DAEMON +# BEFORE: mail localpkg +# KEYWORD: shutdown +# +# Define these miltersid_* variables in one of these files: +# /etc/rc.conf +# /etc/rc.conf.local +# /etc/rc.conf.d/miltersid +# +# DO NOT CHANGE THESE DEFAULT VALUES HERE +# + +. /etc/rc.subr + +name="miltersid" +desc="SID Milter Daemon" +rcvar="miltersid_enable" +load_rc_config $name + +: ${miltersid_enable:="NO"} +: ${miltersid_socket:="local:/var/run/sid-filter"} +: ${miltersid_pid:="/var/run/sid-filter.pid"} +: ${miltersid_flags:="-r 0 -t"} +pidfile=${miltersid_pid} +command="%%PREFIX%%/libexec/sid-filter" +command_args="-l -p ${miltersid_socket} -P ${miltersid_pid}" +start_precmd="sid_precmd" + +sid_precmd() +{ + if [ -S ${miltersid_socket##local:} ] ; then + rm -f ${miltersid_socket##local:} + elif [ -S ${miltersid_socket##unix:} ] ; then + rm -f ${miltersid_socket##unix:} + fi +} + +run_rc_command "$1" Property changes on: head/mail/sid-milter/files/miltersid.in ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/mail/spamilter/Makefile =================================================================== --- head/mail/spamilter/Makefile (revision 531849) +++ head/mail/spamilter/Makefile (revision 531850) @@ -1,88 +1,88 @@ # $FreeBSD$ PORTNAME= spamilter PORTVERSION= 0.60 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= mail MASTER_SITES= http://www.wanlink.com/spamilter/download/ MAINTAINER= dinoex@FreeBSD.org COMMENT= Sendmail LibMilter filter to block spam LICENSE= BSD4CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= tar:tgz shebangfix fakeroot HAS_CONFIGURE= yes CONFIGURE_ARGS= --have-resn USE_RC_SUBR= spamilter LDFLAGS+= -lpthread MAKE_ENV+= __MAKE_CONF=/dev/null BINFILES= spamilter-system-report spamilter-user-report SHEBANG_FILES= ${BINFILES} DOCSFILES= Changelog INSTALL LICENSE docs/docs.html docs/docs.txt \ conf/db.rcpt conf/db.rdnsbl conf/db.sndr \ conf/policy.html conf/spamilter.rc PLIST_FILES+= bin/dnsblchk bin/dnsblupd bin/mxlookup bin/spamilter \ bin/spamilter-system-report bin/spamilter-user-report PORTDOCS= Changelog INSTALL LICENSE docs.html docs.txt db.rcpt \ db.rdnsbl db.sndr policy.html spamilter.rc OPTIONS_DEFINE= SMTP_AFTER_POP3 PAM LIBSPF IPFWMTAD DOCS SMTP_AFTER_POP3_DESC= SMTP after POP3 LIBSPF_DESC= build with libspf IPFWMTAD_DESC= build ipfwmtad (requires openssl) SMTP_AFTER_POP3_CONFIGURE_ON= --with-popauth PAM_CONFIGURE_ON= --with-pam LIBSPF_BUILD_DEPENDS= ${LOCALBASE}/lib/libspf.a:mail/libspf LIBSPF_CONFIGURE_ON= --with-libspf ${LOCALBASE} LIBSPF_CFLAGS= -I${LOCALBASE}/include LIBSPF_LDFLAGS= -L${LOCALBASE}/lib IPFWMTAD_PLIST_FILES= bin/ipfwmtad IPFWMTAD_USES= ssl .include .if ${PORT_OPTIONS:MIPFWMTAD} BROKEN_FreeBSD_12= option IPFWMTAD needs old openssl BROKEN_FreeBSD_13= option IPFWMTAD needs old openssl .endif .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" CONFIGURE_ARGS+= --sendmail-dir "${MILTERBASE}" post-extract: ${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC} pre-configure: ${REINPLACE_CMD} \ -e "s=/etc/spamilter.rc=${PREFIX}/etc/spamilter.rc=" \ ${WRKSRC}/spamilter.c \ ${WRKSRC}/docs/docs.html ${WRKSRC}/docs/docs.txt ${REINPLACE_CMD} \ -e "s=/usr/local/=${PREFIX}/=" \ ${WRKSRC}/Makefile.tmpl .if ! ${PORT_OPTIONS:MIPFWMTAD} post-configure: ${REINPLACE_CMD} \ -e 's| install-ipfwmtad $$| |' \ -e 's| ipfwmtad $$| |' \ ${WRKSRC}/Makefile .endif post-install: .for i in ${BINFILES} ${INSTALL_SCRIPT} ${WRKSRC}/${i} ${STAGEDIR}${PREFIX}/bin/ .endfor post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DOCSFILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/ .include Index: head/mail/spamilter/files/spamilter.in =================================================================== --- head/mail/spamilter/files/spamilter.in (revision 531849) +++ head/mail/spamilter/files/spamilter.in (revision 531850) @@ -1,44 +1,45 @@ #!/bin/sh - +# # $FreeBSD$ - -# Start or stop spamilter - +# # PROVIDE: spamilter # REQUIRE: DAEMON # BEFORE: mail # KEYWORD: shutdown # - # Define these spamilter_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/spamilter # # DO NOT CHANGE THESE DEFAULT VALUES HERE # # spamilter_flags Flags to spamilter -spamilter_enable=${spamilter_enable:-"NO"} # Enable spamilter-milter - . /etc/rc.subr name="spamilter" +desc="Spamilter (SPAM Milter) Daemon" rcvar="spamilter_enable" + +load_rc_config $name + +: ${spamilter_enable:="NO"} + command="%%PREFIX%%/bin/spamilter" pidfile="/tmp/Spamilter.pid" required_files="%%PREFIX%%/etc/spamilter.rc" start_precmd="spamilter_prestart" stop_postcmd="spamilter_poststop" -spamilter_prestart() { +spamilter_prestart() +{ /bin/rm -f "${pidfile}" } -spamilter_poststop() { +spamilter_poststop() +{ /bin/rm -f "${pidfile}" } - -load_rc_config $name run_rc_command "$1" Index: head/mail/vbsfilter/Makefile =================================================================== --- head/mail/vbsfilter/Makefile (revision 531849) +++ head/mail/vbsfilter/Makefile (revision 531850) @@ -1,44 +1,44 @@ # $FreeBSD$ PORTNAME= vbsfilter PORTVERSION= 1.15 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail MASTER_SITES= ftp://ftp.dinoex.de/pub/approved/ EXTRACT_SUFX= .c EXTRACT_ONLY= # empty MAINTAINER= dinoex@FreeBSD.org COMMENT= Vbs-attachment filter for Sendmail Milter LICENSE= GPLv2 USE_RC_SUBR= vbsfilter PLIST_FILES= libexec/vbsfilter CTARGETS+= vbsfilter-${PORTVERSION} LIBS+= -lpthread -lmilter CFLAGS+= -Wall .include .include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" do-extract: ${MKDIR} ${WRKSRC} ${CP} ${_DISTDIR}vbsfilter-${PORTVERSION}.c ${WRKSRC} .for i in ${CTARGETS} ${i}: cd ${WRKSRC} && \ ${CC} ${CFLAGS} ${LDFLAGS} -o ${i} ${i}.c ${LIBS} ${FLAGS} .endfor do-build: ${CTARGETS} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/vbsfilter-${PORTVERSION} \ ${STAGEDIR}${PREFIX}/libexec/vbsfilter .include Index: head/mail/vbsfilter/files/vbsfilter.in =================================================================== --- head/mail/vbsfilter/files/vbsfilter.in (revision 531849) +++ head/mail/vbsfilter/files/vbsfilter.in (revision 531850) @@ -1,48 +1,48 @@ #!/bin/sh - +# # $FreeBSD$ - +# # Start or stop vbsfilter - +# # PROVIDE: vbsfilter # REQUIRE: DAEMON # BEFORE: mail # KEYWORD: shutdown # - +# # Define these vbsfilter_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/vbsfilter # # DO NOT CHANGE THESE DEFAULT VALUES HERE # # vbsfilter_flags Flags to vbsfilter -vbsfilter_enable=${vbsfilter_enable:-"NO"} # Enable vbsfilter-milter -vbsfilter_socket=${vbsfilter_socket:-"/var/run/vbsfilter"} # Path to socket - . /etc/rc.subr name="vbsfilter" +desc="Vbs Attatchment Milter Daemon" rcvar="vbsfilter_enable" + +load_rc_config $name + +: ${vbsfilter_enable:="NO"} +: ${vbsfilter_socket:="/var/run/vbsfilter"} command="%%PREFIX%%/libexec/vbsfilter" +command_args="-p local:${vbsfilter_socket}" procname="${command}" start_precmd="vbsfilter_prestart" stop_postcmd="vbsfilter_poststop" -vbsfilter_prestart() { +vbsfilter_prestart() +{ /bin/rm -f "${vbsfilter_socket}" } -vbsfilter_poststop() { +vbsfilter_poststop() +{ /bin/rm -f "${vbsfilter_socket}" } -load_rc_config $name - -command_args="-p local:${vbsfilter_socket}" - run_rc_command "$1" - -# eof Index: head/net/miniupnpc/Makefile =================================================================== --- head/net/miniupnpc/Makefile (revision 531849) +++ head/net/miniupnpc/Makefile (revision 531850) @@ -1,36 +1,36 @@ # $FreeBSD$ PORTNAME= miniupnpc PORTVERSION= 2.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES?= net MASTER_SITES= http://miniupnp.free.fr/files/ MAINTAINER?= dinoex@FreeBSD.org COMMENT?= UPnP IGD client lightweight library LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES+= gmake HAS_CONFIGURE= yes USE_LDCONFIG= yes CONFIGURE_SCRIPT= updateminiupnpcstrings.sh MAKE_ENV+= INSTALLPREFIX=${PREFIX} .include .if defined(WITH_DEBUG) CFLAGS+= -DDEBUG .endif .if ${SLAVE_PORT} == no USE_RC_SUBR= miniupnpc post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/upnpc \ ${STAGEDIR}${PREFIX}/lib/libminiupnpc.so.17 .endif .include Index: head/net/miniupnpc/files/miniupnpc.in =================================================================== --- head/net/miniupnpc/files/miniupnpc.in (revision 531849) +++ head/net/miniupnpc/files/miniupnpc.in (revision 531850) @@ -1,34 +1,37 @@ #!/bin/sh +# +# $FreeBSD$ +# # PROVIDE: miniupnpc # REQUIRE: NETWORKING SERVERS DAEMON ldconfig resolv # KEYWORD: shutdown - -. /etc/rc.subr - +# # Add the following lines to /etc/rc.conf to enable miniupnpc # miniupnpc_enable="YES" # miniupnpc_config="port protocol [port2 protocol2] [...]" +. /etc/rc.subr + name="miniupnpc" +desc="MiniUPnP Client Startup Config" rcvar=miniupnpc_enable load_rc_config $name -miniupnpc_enable=${miniupnpc_enable:-"NO"} - +: ${miniupnpc_enable:="NO"} command="%%PREFIX%%/bin/upnpc" start_cmd="miniupnpc_start" stop_cmd="miniupnpc_stop" -miniupnpc_start() { +miniupnpc_start() +{ eval "${command} -r ${miniupnpc_config} | grep duration" } -miniupnpc_stop() { +miniupnpc_stop() +{ echo "Remove redirections" ${miniupnpc_config} eval ${command} -d ${miniupnpc_config} > /dev/null } run_rc_command "$1" - -# eof Index: head/security/tinc/Makefile =================================================================== --- head/security/tinc/Makefile (revision 531849) +++ head/security/tinc/Makefile (revision 531850) @@ -1,29 +1,29 @@ # Created by: ijliao # $FreeBSD$ PORTNAME= tinc PORTVERSION= 1.0.36 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security net-vpn MASTER_SITES= https://www.tinc-vpn.org/packages/ \ http://www.tinc-vpn.org/packages/ MAINTAINER= dinoex@FreeBSD.org COMMENT= Virtual Private Network (VPN) daemon LICENSE= GPLv3 LIB_DEPENDS= liblzo2.so:archivers/lzo2 USES= cpe ssl makeinfo CPE_VENDOR= tinc-vpn GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS= --localstatedir=/var USE_RC_SUBR= tincd INFO= tinc PLIST_FILES= sbin/tincd \ man/man5/tinc.conf.5.gz man/man8/tincd.8.gz .include Index: head/security/tinc/files/tincd.in =================================================================== --- head/security/tinc/files/tincd.in (revision 531849) +++ head/security/tinc/files/tincd.in (revision 531850) @@ -1,115 +1,121 @@ #!/bin/sh - +# # $FreeBSD$ # # PROVIDE: tincd # REQUIRE: ipfilter FILESYSTEMS sysctl netif # BEFORE: SERVERS routing +# KEYWORD: shutdown # # Define these tincd_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/tincd # # tincd_enable (bool): Set to "NO" by default. # Set it to "YES" to enable tincd. # tincd_cfg (str): Set to "" by default. # Set it to NETNAMEs to use (ex.: "vpn1 vpn2"). # tincd_flags (str): Set to "" by default. # Set it to flags to use (ex.: "-d 1 --logfile"). # # DO NOT CHANGE THESE DEFAULT VALUES HERE -tincd_enable=${tincd_enable:-"NO"} - . /etc/rc.subr name="tincd" +desc="Tinc VPN Daemon" rcvar="tincd_enable" + +load_rc_config $name + +: ${tincd_enable:="NO"} command="%%PREFIX%%/sbin/tincd" start_cmd="tincd_start" stop_cmd="tincd_stop" reload_cmd="tincd_reload" status_cmd="tincd_status" extra_commands="reload" procname=${command:-tincd} ldconfig_command="/sbin/ldconfig" -load_rc_config $name - tincd_start() { ${ldconfig_command} -elf -m %%LOCALBASE%%/lib if test -z "${tincd_cfg}" then echo "Starting tincd" $command else for cfg in ${tincd_cfg} do echo "Starting tincd for: ${cfg}" $command -n $cfg $tincd_flags done fi -# code deliberately borrowed from /etc/rc.d/netif + # code deliberately borrowed from /etc/rc.d/netif if [ -f /etc/rc.d/ipfilter ] ; then # Resync ipfilter /etc/rc.d/ipfilter quietresync fi } + tincd_stop() { if test -z "${tincd_cfg}" then echo "Stopping tincd" $command -k else for cfg in $tincd_cfg do echo "Stopping tincd for: ${cfg}" $command -n $cfg -k done fi wait_for_pids $rc_pid } + tincd_reload() { if test -z "${tincd_cfg}" then echo "Sending HUP to tincd" $command --kill=HUP else for cfg in $tincd_cfg do echo "Sending HUP to tincd for: ${cfg}" $command -n $cfg --kill=HUP done fi } -tincd_status_network() { + +tincd_status_network() +{ rc_pid=$(check_pidfile "$pidfile" "$_procname" "$command_interpreter") if [ -n "$rc_pid" ]; then echo "${name} for ${cfg} is running as pid $rc_pid." else echo "${name} for ${cfg} is not running." return 1 fi } + tincd_status() { if test -z "${tincd_cfg}" then cfg="." pidfile="/var/run/tinc.pid" tincd_status_network else for cfg in $tincd_cfg do pidfile="/var/run/tinc.${cfg}.pid" tincd_status_network done fi } run_rc_command "$1" -# eof Index: head/security/tinc-devel/Makefile =================================================================== --- head/security/tinc-devel/Makefile (revision 531849) +++ head/security/tinc-devel/Makefile (revision 531850) @@ -1,29 +1,29 @@ # $FreeBSD$ PORTNAME= tinc PORTVERSION= 1.1pre17 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= security net-vpn MASTER_SITES= https://www.tinc-vpn.org/packages/ \ http://www.tinc-vpn.org/packages/ PKGNAMESUFFIX= -devel MAINTAINER= dinoex@FreeBSD.org COMMENT= Virtual Private Network (VPN) daemon LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= liblzo2.so:archivers/lzo2 USES= cpe ssl makeinfo readline localbase:ldflags CPE_VENDOR= tinc-vpn GNU_CONFIGURE= yes CONFIGURE_ARGS= --localstatedir=/var --with-curses=/usr USE_RC_SUBR= tincd INFO= tinc PLIST_FILES= sbin/tincd sbin/tinc \ man/man8/tinc-gui.8.gz man/man5/tinc.conf.5.gz \ man/man8/tinc.8.gz man/man8/tincd.8.gz .include Index: head/security/tinc-devel/files/tincd.in =================================================================== --- head/security/tinc-devel/files/tincd.in (revision 531849) +++ head/security/tinc-devel/files/tincd.in (revision 531850) @@ -1,114 +1,120 @@ #!/bin/sh - +# # $FreeBSD$ # # PROVIDE: tincd # REQUIRE: ipfilter FILESYSTEMS sysctl netif # BEFORE: SERVERS routing +# KEYWORD: shutdown # # Define these tincd_* variables in one of these files: # /etc/rc.conf # /etc/rc.conf.local # /etc/rc.conf.d/tincd # # tincd_enable (bool): Set to "NO" by default. # Set it to "YES" to enable tincd. # tincd_cfg (str): Set to "" by default. # Set it to NETNAMEs to use (ex.: "vpn1 vpn2"). # tincd_flags (str): Set to "" by default. # Set it to flags to use (ex.: "-d 1 --logfile"). # # DO NOT CHANGE THESE DEFAULT VALUES HERE -tincd_enable=${tincd_enable:-"NO"} - . /etc/rc.subr name="tincd" +desc="Tinc VPN Daemon" rcvar="tincd_enable" + +load_rc_config $name + +: ${tincd_enable:="NO"} command="%%PREFIX%%/sbin/tinc" start_cmd="tincd_start" stop_cmd="tincd_stop" reload_cmd="tincd_reload" status_cmd="tincd_status" extra_commands="reload" procname=${command:-tincd} ldconfig_command="/sbin/ldconfig" -load_rc_config $name - tincd_start() { ${ldconfig_command} -elf -m %%LOCALBASE%%/lib if test -z "${tincd_cfg}" then echo "Starting tincd" $command start else for cfg in ${tincd_cfg} do echo "Starting tincd for: ${cfg}" $command -n $cfg start $tincd_flags done fi -# code deliberately borrowed from /etc/rc.d/netif + # code deliberately borrowed from /etc/rc.d/netif if [ -f /etc/rc.d/ipfilter ] ; then # Resync ipfilter /etc/rc.d/ipfilter quietresync fi } + tincd_stop() { if test -z "${tincd_cfg}" then echo "Stopping tincd" $command stop else for cfg in $tincd_cfg do echo "Stopping tincd for: ${cfg}" $command -n $cfg stop done fi wait_for_pids $rc_pid } + tincd_reload() { if test -z "${tincd_cfg}" then echo "Sending reload to tincd" $command reload else for cfg in $tincd_cfg do echo "Sending reload to tincd for: ${cfg}" $command -n $cfg reload done fi } -tincd_status_network() { + +tincd_status_network() +{ if [ -n "$rc_pid" ]; then echo "${name} for ${cfg} is running as pid $rc_pid." else echo "${name} for ${cfg} is not running." return 1 fi } + tincd_status() { if test -z "${tincd_cfg}" then cfg="." rc_pid=$($command pid) tincd_status_network else for cfg in $tincd_cfg do rc_pid=$($command -n $cfg pid) tincd_status_network done fi } run_rc_command "$1" -# eof Index: head/sysutils/xe-guest-utilities/Makefile =================================================================== --- head/sysutils/xe-guest-utilities/Makefile (revision 531849) +++ head/sysutils/xe-guest-utilities/Makefile (revision 531850) @@ -1,30 +1,30 @@ # Created by: Mark Felder # $FreeBSD$ PORTNAME= xe-guest-utilities PORTVERSION= 6.2.0 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= sysutils MASTER_SITES= LOCAL/feld DISTNAME= ${PORTNAME}-6.0.2 MAINTAINER= dinoex@FreeBSD.org COMMENT= FreeBSD VM tools for Citrix XenServer and XCP RUN_DEPENDS= xen-guest-tools>0:${PKGCATEGORY}/xen-guest-tools USES= gmake python USE_RC_SUBR= xenguest ONLY_FOR_ARCHS= amd64 i386 ONLY_FOR_ARCHS_REASON= "Requires i386 XEN or amd64 XENHVM kernels" NO_BUILD= yes PLIST_FILES= sbin/xe-daemon \ sbin/xe-update-guest-attrs do-install: ${INSTALL_SCRIPT} ${WRKSRC}/src/sbin/xe-daemon ${STAGEDIR}${PREFIX}/sbin ${INSTALL_SCRIPT} ${WRKSRC}/src/sbin/xe-update-guest-attrs ${STAGEDIR}${PREFIX}/sbin .include Index: head/sysutils/xe-guest-utilities/files/xenguest.in =================================================================== --- head/sysutils/xe-guest-utilities/files/xenguest.in (revision 531849) +++ head/sysutils/xe-guest-utilities/files/xenguest.in (revision 531850) @@ -1,38 +1,39 @@ #!/bin/sh # $FreeBSD$ # # PROVIDE: xenguest # REQUIRE: LOGIN # KEYWORD: nojail shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # xenguest_enable (bool): Set to NO by default. # Set it to YES to enable xenguest. . /etc/rc.subr name=xenguest +desc="Xen Guest Daemon" rcvar=xenguest_enable load_rc_config $name +command="%%PREFIX%%/sbin/xe-daemon" +pidfile=/var/run/xe-daemon.pid +command_interpreter=/bin/sh +command_args='-p ${pidfile} &' + autoxen=`sysctl kern.vm_guest` autoxen="${autoxen#kern.vm_guest: }" case "${autoxen}" in xen) : ${xenguest_enable:=YES} ;; *) : ${xenguest_enable:=NO} ;; esac - -pidfile=/var/run/xe-daemon.pid -command="%%PREFIX%%/sbin/xe-daemon" -command_interpreter=/bin/sh -command_args='-p ${pidfile} &' run_rc_command "$1"