diff --git a/mail/archiveopteryx-devel/Makefile b/mail/archiveopteryx-devel/Makefile index 591456454244..79ca4381efae 100644 --- a/mail/archiveopteryx-devel/Makefile +++ b/mail/archiveopteryx-devel/Makefile @@ -1,67 +1,67 @@ PORTNAME= archiveopteryx PORTVERSION= 3.2.99.20181030 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= mail PKGNAMESUFFIX= -devel MAINTAINER= feld@FreeBSD.org COMMENT= Advanced PostgreSQL-based IMAP/POP server WWW= https://www.archiveopteryx.org/ LICENSE= MIT BUILD_DEPENDS= jam:devel/jam USE_GITHUB= yes GH_ACCOUNT= aox GH_PROJECT= aox GH_TAGNAME= 96ab17e USES= compiler perl5 ssl USE_PERL5= build WITH_PGSQL= client CONFLICTS_INSTALL= archiveopteryx # bin/aox bin/aoxdeliver bin/aoxexport bin/aoximport PORTDOCS= COPYING README license.txt SUB_FILES= pkg-message USE_RC_SUBR= ${PORTNAME} CONFLICTS= archiveopteryx USERS= aox GROUPS= aox PLIST_SUB+= USERS="${USERS}" PLIST_SUB+= GROUPS="${GROUPS}" JAM?= ${LOCALBASE}/bin/jam OPTIONS_DEFINE= DOCS .include # force Clang when on FreeBSD with clang in base .if ${OPSYS} == FreeBSD .if ${CHOSEN_COMPILER_TYPE} == clang JAMARG+= "-sCLANG=1" .endif .endif post-patch: @${EGREP} -Rl '%%[[:alpha:]]+%%' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \ -e 's,%%PREFIX%%,${PREFIX},g' ${REINPLACE_CMD} -e "s|\(C++FLAGS =\)|\1 -I${OPENSSLINC}|g" \ -e"s|INSTALLROOT ?= \"\" ;|INSTALLROOT = \"${STAGEDIR}\" ;|" \ ${WRKSRC}/Jamsettings ${REINPLACE_CMD} -e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \ ${WRKSRC}/server/Jamfile do-build: @cd ${WRKSRC} && ${JAM} ${JAMARG} do-install: @cd ${WRKSRC} && ${JAM} ${JAMARG} install .include diff --git a/mail/archiveopteryx-devel/files/archiveopteryx.in b/mail/archiveopteryx-devel/files/archiveopteryx.in index ad3426fb18ba..25f46f2986ec 100644 --- a/mail/archiveopteryx-devel/files/archiveopteryx.in +++ b/mail/archiveopteryx-devel/files/archiveopteryx.in @@ -1,68 +1,68 @@ #!/bin/sh # PROVIDE: archiveopteryx -# REQUIRE: login +# REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # archiveopteryx_enable (bool): Set to NO by default. # Set it to YES to enable archiveopteryx. # . /etc/rc.subr name=archiveopteryx rcvar=archiveopteryx_enable load_rc_config $name archiveopteryx_enable=${archiveopteryx_enable:-"NO"} pidfile=/var/run/${name}.pid config_file=%%PREFIX%%/etc/archiveopteryx/archiveopteryx.conf required_files=$config_file command=%%PREFIX%%/bin/aox extra_commands=status status_cmd="${command} show status" start_cmd=do_start start_precmd=do_prestart stop_cmd=do_stop restart_cmd=do_restart do_prestart() { if [ ! -d /var/db/aox/jail ] ; then install -d -o root -g wheel -m 001 /var/db/aox/jail fi for i in /var/run/aox /var/db/aox/messages /var/db/aox/jail/var/run /var/db/aox/jail/messages ; do if [ ! -d ${i} ] ; then install -d -o aox -g aox ${i} ; fi done } do_start() { echo -n "Starting Archiveopteryx: " ${command} start echo "done." } do_stop() { echo -n "Stopping Archiveopteryx: " ${command} stop echo "done." } do_restart() { echo -n "Restarting Archiveopteryx: " ${command} restart echo "done." } run_rc_command "$1" diff --git a/mail/archiveopteryx/Makefile b/mail/archiveopteryx/Makefile index f86010d148d6..c3b176484a9f 100644 --- a/mail/archiveopteryx/Makefile +++ b/mail/archiveopteryx/Makefile @@ -1,61 +1,61 @@ PORTNAME= archiveopteryx PORTVERSION= 3.2.0 -PORTREVISION= 8 +PORTREVISION= 9 CATEGORIES= mail MASTER_SITES= http://archiveopteryx.org/download/ MAINTAINER= feld@FreeBSD.org COMMENT= Advanced PostgreSQL-based IMAP/POP server WWW= https://www.archiveopteryx.org/ LICENSE= MIT BUILD_DEPENDS= jam:devel/jam USES= compiler perl5 ssl tar:bzip2 USE_PERL5= build WITH_PGSQL= client CONFLICTS_INSTALL= archiveopteryx-devel # bin/aox bin/aoxdeliver bin/aoxexport bin/aoximport PORTDOCS= COPYING README bsd.txt SUB_FILES= pkg-message USE_RC_SUBR= ${PORTNAME} USERS= aox GROUPS= aox PLIST_SUB+= USERS="${USERS}" PLIST_SUB+= GROUPS="${GROUPS}" JAM?= ${LOCALBASE}/bin/jam JAMARG+= -dx OPTIONS_DEFINE= DOCS .include # force Clang when on FreeBSD with clang in base .if ${OPSYS} == FreeBSD .if ${CHOSEN_COMPILER_TYPE} == clang JAMARG+= "-sCLANG=1" .endif .endif post-patch: @${EGREP} -Rl '%%[[:alpha:]]+%%' ${WRKSRC} |${XARGS} ${REINPLACE_CMD} \ -e 's,%%PREFIX%%,${PREFIX},g' ${REINPLACE_CMD} -e "s|\(C++FLAGS =\)|\1 -I${OPENSSLINC}|g" \ -e"s|INSTALLROOT ?= \"\" ;|INSTALLROOT = \"${STAGEDIR}\" ;|" \ ${WRKSRC}/Jamsettings ${REINPLACE_CMD} -e "s|\(-lcrypto\)|-L${OPENSSLLIB} \1|g" \ ${WRKSRC}/server/Jamfile do-build: @cd ${WRKSRC} && ${JAM} ${JAMARG} do-install: @cd ${WRKSRC} && ${JAM} ${JAMARG} install .include diff --git a/mail/archiveopteryx/files/archiveopteryx.in b/mail/archiveopteryx/files/archiveopteryx.in index ad3426fb18ba..25f46f2986ec 100644 --- a/mail/archiveopteryx/files/archiveopteryx.in +++ b/mail/archiveopteryx/files/archiveopteryx.in @@ -1,68 +1,68 @@ #!/bin/sh # PROVIDE: archiveopteryx -# REQUIRE: login +# REQUIRE: LOGIN # KEYWORD: shutdown # # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # # archiveopteryx_enable (bool): Set to NO by default. # Set it to YES to enable archiveopteryx. # . /etc/rc.subr name=archiveopteryx rcvar=archiveopteryx_enable load_rc_config $name archiveopteryx_enable=${archiveopteryx_enable:-"NO"} pidfile=/var/run/${name}.pid config_file=%%PREFIX%%/etc/archiveopteryx/archiveopteryx.conf required_files=$config_file command=%%PREFIX%%/bin/aox extra_commands=status status_cmd="${command} show status" start_cmd=do_start start_precmd=do_prestart stop_cmd=do_stop restart_cmd=do_restart do_prestart() { if [ ! -d /var/db/aox/jail ] ; then install -d -o root -g wheel -m 001 /var/db/aox/jail fi for i in /var/run/aox /var/db/aox/messages /var/db/aox/jail/var/run /var/db/aox/jail/messages ; do if [ ! -d ${i} ] ; then install -d -o aox -g aox ${i} ; fi done } do_start() { echo -n "Starting Archiveopteryx: " ${command} start echo "done." } do_stop() { echo -n "Stopping Archiveopteryx: " ${command} stop echo "done." } do_restart() { echo -n "Restarting Archiveopteryx: " ${command} restart echo "done." } run_rc_command "$1"