Date: Thu, 16 Apr 2020 14:49:59 +0000 (UTC) From: Dirk Meyer <dinoex@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r531850 - in head: ftp/vsftpd ftp/vsftpd/files irc/iroffer-dinoex irc/iroffer-dinoex/files mail/antivirus-milter mail/antivirus-milter/files mail/archivesmtp mail/archivesmtp/files mail... Message-ID: <202004161449.03GEnxXm087550@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dinoex Date: Thu Apr 16 14:49:59 2020 New Revision: 531850 URL: https://svnweb.freebsd.org/changeset/ports/531850 Log: - cleanup rc.d script Added: head/irc/iroffer-dinoex/files/iroffer.in - copied, changed from r531849, head/irc/iroffer-dinoex/files/iroffer-dinoex.in head/mail/antivirus-milter/files/antivirus.in - copied, changed from r531849, head/mail/antivirus-milter/files/antivirus-milter.in head/mail/sid-milter/files/miltersid.in - copied, changed from r531849, head/mail/sid-milter/files/milter-sid.in Deleted: head/irc/iroffer-dinoex/files/iroffer-dinoex.in head/mail/antivirus-milter/files/antivirus-milter.in head/mail/sid-milter/files/milter-sid.in Modified: head/ftp/vsftpd/Makefile head/ftp/vsftpd/files/vsftpd.in head/irc/iroffer-dinoex/Makefile head/mail/antivirus-milter/Makefile head/mail/archivesmtp/Makefile head/mail/archivesmtp/files/archivesmtp.in head/mail/milter-regex/Makefile head/mail/milter-regex/files/milterregex.in head/mail/noattach/Makefile head/mail/noattach/files/noattach.in head/mail/rbl-milter/Makefile head/mail/rbl-milter/files/rblmilter.in head/mail/sid-milter/Makefile head/mail/spamilter/Makefile head/mail/spamilter/files/spamilter.in head/mail/vbsfilter/Makefile head/mail/vbsfilter/files/vbsfilter.in head/net/miniupnpc/Makefile head/net/miniupnpc/files/miniupnpc.in head/security/tinc-devel/Makefile head/security/tinc-devel/files/tincd.in head/security/tinc/Makefile head/security/tinc/files/tincd.in head/sysutils/xe-guest-utilities/Makefile head/sysutils/xe-guest-utilities/files/xenguest.in Modified: head/ftp/vsftpd/Makefile ============================================================================== --- head/ftp/vsftpd/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/ftp/vsftpd/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -3,7 +3,7 @@ PORTNAME= vsftpd PORTVERSION= 3.0.3 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= ftp MASTER_SITES= https://security.appspot.com/downloads/ \ GENTOO Modified: head/ftp/vsftpd/files/vsftpd.in ============================================================================== --- head/ftp/vsftpd/files/vsftpd.in Thu Apr 16 14:48:37 2020 (r531849) +++ head/ftp/vsftpd/files/vsftpd.in Thu Apr 16 14:49:59 2020 (r531850) @@ -2,10 +2,10 @@ # # $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': # @@ -24,12 +24,13 @@ . /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" Modified: head/irc/iroffer-dinoex/Makefile ============================================================================== --- head/irc/iroffer-dinoex/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/irc/iroffer-dinoex/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -2,7 +2,7 @@ PORTNAME= iroffer PORTVERSION= 3.32 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= irc MASTER_SITES= https://iroffer.net/ PKGNAMESUFFIX= -dinoex${PKGNAMESUFFIX2} @@ -20,8 +20,9 @@ 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 \ Copied and modified: head/irc/iroffer-dinoex/files/iroffer.in (from r531849, head/irc/iroffer-dinoex/files/iroffer-dinoex.in) ============================================================================== --- head/irc/iroffer-dinoex/files/iroffer-dinoex.in Thu Apr 16 14:48:37 2020 (r531849, copy source) +++ head/irc/iroffer-dinoex/files/iroffer.in Thu Apr 16 14:49:59 2020 (r531850) @@ -2,11 +2,9 @@ # # $FreeBSD$ # - # PROVIDE: iroffer # REQUIRE: LOGIN # KEYWORD: shutdown - # # iroffer_enable="YES" # iroffer_flags="<set as needed>" @@ -21,18 +19,27 @@ . /etc/rc.subr name="iroffer" -rcvar=iroffer_enable +desc="Iroffer IRC Bot" +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"} +: ${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() { @@ -46,14 +53,4 @@ iroffer_checkdisk() 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 Modified: head/mail/antivirus-milter/Makefile ============================================================================== --- head/mail/antivirus-milter/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/antivirus-milter/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -2,7 +2,7 @@ PORTNAME= antivirus PORTVERSION= 3.30 -PORTREVISION= 9 +PORTREVISION= 10 CATEGORIES= mail MASTER_SITES= LOCAL/dinoex @@ -17,7 +17,7 @@ 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 Copied and modified: head/mail/antivirus-milter/files/antivirus.in (from r531849, head/mail/antivirus-milter/files/antivirus-milter.in) ============================================================================== --- head/mail/antivirus-milter/files/antivirus-milter.in Thu Apr 16 14:48:37 2020 (r531849, copy source) +++ head/mail/antivirus-milter/files/antivirus.in Thu Apr 16 14:49:59 2020 (r531850) @@ -1,15 +1,15 @@ #!/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 @@ -17,31 +17,33 @@ # # 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" +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() { +antivirus_prestart() +{ /bin/rm -f "${pidfile}" "${antivirus_socket}" } -antivirus_poststop() { +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" Modified: head/mail/archivesmtp/Makefile ============================================================================== --- head/mail/archivesmtp/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/archivesmtp/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -3,7 +3,7 @@ PORTNAME= archivesmtp PORTVERSION= 1.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail MASTER_SITES= http://www.dancingfortune.com/projects/archivesmtp/files/ Modified: head/mail/archivesmtp/files/archivesmtp.in ============================================================================== --- head/mail/archivesmtp/files/archivesmtp.in Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/archivesmtp/files/archivesmtp.in Thu Apr 16 14:49:59 2020 (r531850) @@ -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" Modified: head/mail/milter-regex/Makefile ============================================================================== --- head/mail/milter-regex/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/milter-regex/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -3,6 +3,7 @@ PORTNAME= milter-regex PORTVERSION= 2.7 +PORTREVISION= 1 CATEGORIES= mail MASTER_SITES= https://www.benzedrine.ch/ Modified: head/mail/milter-regex/files/milterregex.in ============================================================================== --- head/mail/milter-regex/files/milterregex.in Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/milter-regex/files/milterregex.in Thu Apr 16 14:49:59 2020 (r531850) @@ -1,16 +1,12 @@ #!/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 @@ -20,21 +16,24 @@ spooldir=%%SPOOLDIR%% # # 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" Modified: head/mail/noattach/Makefile ============================================================================== --- head/mail/noattach/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/noattach/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -2,7 +2,7 @@ PORTNAME= noattach PORTVERSION= 1.2 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail MASTER_SITES= ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/ Modified: head/mail/noattach/files/noattach.in ============================================================================== --- head/mail/noattach/files/noattach.in Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/noattach/files/noattach.in Thu Apr 16 14:49:59 2020 (r531850) @@ -19,35 +19,39 @@ # # 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" Modified: head/mail/rbl-milter/Makefile ============================================================================== --- head/mail/rbl-milter/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/rbl-milter/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -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 <bsd.port.pre.mk> -.include "${.CURDIR}/../sendmail/bsd.milter.mk" +.include "${PORTSDIR}/mail/sendmail/bsd.milter.mk" -.include <bsd.port.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 <bsd.port.post.mk> Modified: head/mail/rbl-milter/files/rblmilter.in ============================================================================== --- head/mail/rbl-milter/files/rblmilter.in Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/rbl-milter/files/rblmilter.in Thu Apr 16 14:49:59 2020 (r531850) @@ -1,15 +1,15 @@ #!/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 @@ -17,30 +17,32 @@ # # 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 Modified: head/mail/sid-milter/Makefile ============================================================================== --- head/mail/sid-milter/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/sid-milter/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -2,7 +2,7 @@ PORTNAME= sid-milter PORTVERSION= 1.0.0 -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= mail MASTER_SITES= SF/${PORTNAME}/SenderID%20Milter/${PORTVERSION} @@ -19,7 +19,7 @@ DOCSFILES= FEATURES INSTALL KNOWNBUGS LICENSE README R 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 Copied and modified: head/mail/sid-milter/files/miltersid.in (from r531849, head/mail/sid-milter/files/milter-sid.in) ============================================================================== --- head/mail/sid-milter/files/milter-sid.in Thu Apr 16 14:48:37 2020 (r531849, copy source) +++ head/mail/sid-milter/files/miltersid.in Thu Apr 16 14:49:59 2020 (r531850) @@ -2,42 +2,43 @@ # # $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 -# 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"} - +: ${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 () +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 + 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" Modified: head/mail/spamilter/Makefile ============================================================================== --- head/mail/spamilter/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/spamilter/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -2,7 +2,7 @@ PORTNAME= spamilter PORTVERSION= 0.60 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= mail MASTER_SITES= http://www.wanlink.com/spamilter/download/ Modified: head/mail/spamilter/files/spamilter.in ============================================================================== --- head/mail/spamilter/files/spamilter.in Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/spamilter/files/spamilter.in Thu Apr 16 14:49:59 2020 (r531850) @@ -1,15 +1,12 @@ #!/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 @@ -19,26 +16,30 @@ # # 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" Modified: head/mail/vbsfilter/Makefile ============================================================================== --- head/mail/vbsfilter/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/vbsfilter/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -2,7 +2,7 @@ PORTNAME= vbsfilter PORTVERSION= 1.15 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= mail MASTER_SITES= ftp://ftp.dinoex.de/pub/approved/ EXTRACT_SUFX= .c Modified: head/mail/vbsfilter/files/vbsfilter.in ============================================================================== --- head/mail/vbsfilter/files/vbsfilter.in Thu Apr 16 14:48:37 2020 (r531849) +++ head/mail/vbsfilter/files/vbsfilter.in Thu Apr 16 14:49:59 2020 (r531850) @@ -1,15 +1,15 @@ #!/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 @@ -19,30 +19,30 @@ # # 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 Modified: head/net/miniupnpc/Makefile ============================================================================== --- head/net/miniupnpc/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/net/miniupnpc/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -2,7 +2,7 @@ PORTNAME= miniupnpc PORTVERSION= 2.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES?= net MASTER_SITES= http://miniupnp.free.fr/files/ Modified: head/net/miniupnpc/files/miniupnpc.in ============================================================================== --- head/net/miniupnpc/files/miniupnpc.in Thu Apr 16 14:48:37 2020 (r531849) +++ head/net/miniupnpc/files/miniupnpc.in Thu Apr 16 14:49:59 2020 (r531850) @@ -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 Modified: head/security/tinc-devel/Makefile ============================================================================== --- head/security/tinc-devel/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/security/tinc-devel/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -2,7 +2,7 @@ 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/ Modified: head/security/tinc-devel/files/tincd.in ============================================================================== --- head/security/tinc-devel/files/tincd.in Thu Apr 16 14:48:37 2020 (r531849) +++ head/security/tinc-devel/files/tincd.in Thu Apr 16 14:49:59 2020 (r531850) @@ -1,10 +1,11 @@ #!/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 @@ -20,12 +21,15 @@ # # 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" @@ -35,8 +39,6 @@ extra_commands="reload" procname=${command:-tincd} ldconfig_command="/sbin/ldconfig" -load_rc_config $name - tincd_start() { ${ldconfig_command} -elf -m %%LOCALBASE%%/lib @@ -51,12 +53,13 @@ tincd_start() $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}" @@ -72,6 +75,7 @@ tincd_stop() fi wait_for_pids $rc_pid } + tincd_reload() { if test -z "${tincd_cfg}" @@ -86,7 +90,9 @@ tincd_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 @@ -94,6 +100,7 @@ tincd_status_network() { return 1 fi } + tincd_status() { if test -z "${tincd_cfg}" @@ -111,4 +118,3 @@ tincd_status() } run_rc_command "$1" -# eof Modified: head/security/tinc/Makefile ============================================================================== --- head/security/tinc/Makefile Thu Apr 16 14:48:37 2020 (r531849) +++ head/security/tinc/Makefile Thu Apr 16 14:49:59 2020 (r531850) @@ -3,7 +3,7 @@ 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/ Modified: head/security/tinc/files/tincd.in ============================================================================== --- head/security/tinc/files/tincd.in Thu Apr 16 14:48:37 2020 (r531849) +++ head/security/tinc/files/tincd.in Thu Apr 16 14:49:59 2020 (r531850) @@ -1,10 +1,11 @@ #!/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 @@ -20,12 +21,15 @@ # # 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" @@ -35,8 +39,6 @@ extra_commands="reload" procname=${command:-tincd} ldconfig_command="/sbin/ldconfig" -load_rc_config $name - tincd_start() { ${ldconfig_command} -elf -m %%LOCALBASE%%/lib @@ -51,12 +53,13 @@ tincd_start() $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}" @@ -72,6 +75,7 @@ tincd_stop() fi wait_for_pids $rc_pid } + tincd_reload() { if test -z "${tincd_cfg}" @@ -86,7 +90,9 @@ tincd_reload() 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." @@ -95,6 +101,7 @@ tincd_status_network() { return 1 fi } + tincd_status() { if test -z "${tincd_cfg}" @@ -112,4 +119,3 @@ tincd_status() } *** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004161449.03GEnxXm087550>