1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

- USE_RC_SUBR != yes

PR:             ports/136841
Approved by:    maintainer
Submitted by:   myself (pgollucci@)
This commit is contained in:
Philip M. Gollucci 2009-12-17 23:22:04 +00:00
parent e46eb20d7d
commit 0729e457a1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=246073
5 changed files with 4 additions and 75 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= quickml
PORTVERSION= 0.7
PORTREVISION= 5
PORTREVISION= 6
CATEGORIES= mail
MASTER_SITES= http://0xcc.net/quickml/
@ -18,6 +18,7 @@ OPTIONS+= ANALOG "Enable quickml-analog" on \
LIMIT "Enable Creators and Members Limitation Patch" off
PKGINSTALL= ${WRKDIR}/pkg-install
SUB_FILES+= pkg-install
QUICKML_USER= quickml
QUICKML_GROUP= quickml
@ -26,9 +27,8 @@ USE_AUTOTOOLS= autoconf:262
GNU_CONFIGURE= yes
USE_RUBY= yes
USE_RC_SUBR= yes
FILES_SUB= USER=${QUICKML_USER} GROUP=${QUICKML_GROUP} \
PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} RUBY=${RUBY}
USE_RC_SUBR= ${PORTNAME}
SUB_LIST+= USER=${QUICKML_USER} GROUP=${QUICKML_GROUP} RUBY=${RUBY}
CONFIGURE_ARGS+= --datadir="${PREFIX}/share/quickml"
CONFIGURE_ARGS+= --with-ruby="${RUBY}"
@ -57,15 +57,11 @@ post-patch:
.if !defined(WITHOUT_LIMIT)
@${PATCH} ${PATCH_DIST_ARGS} < ${DISTDIR}/${PORTNAME}-${PORTVERSION}-limited.patch
.endif
@${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/quickml.sh > ${WRKDIR}/quickml.sh
.if defined(WITHOUT_ANALOG)
${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/without_quickml-analog
.endif
pre-install:
@${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${PKGDIR}/pkg-install > ${PKGINSTALL}
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
post-install:
@ -79,10 +75,5 @@ post-install:
${INSTALL_DATA} ${FILESDIR}/with-mta.en.rd ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/with-mta.ja.rd ${DOCSDIR}
.endif
.if !exists(${PREFIX}/etc/rc.d/quickml.sh)
@${ECHO} "Installing ${PREFIX}/etc/rc.d/quickml.sh startup file."
${INSTALL_SCRIPT} -m 751 ${WRKDIR}/quickml.sh ${PREFIX}/etc/rc.d/quickml.sh
.endif
@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g' ${PKGMESSAGE}
.include <bsd.port.post.mk>

View File

@ -1,18 +0,0 @@
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/mail/quickml/files/Attic/quickml.sh,v 1.1 2004-07-05 17:20:17 pav Exp $
#
. %%RC_SUBR%%
name="quickml"
rcvar=`set_rcvar`
command="%%RUBY%%"
command_args="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files=%%PREFIX%%/etc/quickmlrc
load_rc_config $name
run_rc_command "$1"

View File

@ -1,31 +0,0 @@
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/mail/quickml/Attic/pkg-install,v 1.1 2004-07-05 17:20:17 pav Exp $
#
PATH=/bin:/usr/bin:/usr/sbin
case $2 in
PRE-INSTALL)
echo "---> Starting pre-install script:"
if pw showgroup "%%GROUP%%" 2>/dev/null; then
echo "---> Using existing group \"%%GROUP%%\""
else
echo "---> Adding group \"%%GROUP%%\""
pw addgroup %%GROUP%% -g 109 -h - || exit 1
fi
# Create user if required
if pw showuser "%%USER%%" 2>/dev/null; then
echo "---> Using existing user \"%%USER%%\""
else
echo "---> Adding user \"%%USER%%\""
pw adduser %%USER%% -u 109 -g %%GROUP%% -h - \
-d "/nonexistent" -s "/sbin/nologin" -c "quickml Server" || exit 1
fi
;;
esac

View File

@ -1,12 +0,0 @@
----------------------------------------------------------------------
Installation of QuickML is finished. QuickML works as a SMTP server.
The default configuration let QuickML hold tcp/25, so if you are using
the host as a SMTP server you must change settings.
You can change port for QuickML in %%PREFIX%%/etc/quickmlrc like:
:port => 10025,
Please see also :
%%DOCSDIR%%/with-mta.en.rd
%%DOCSDIR%%/with-mta.ja.rd
----------------------------------------------------------------------

View File

@ -13,7 +13,6 @@ sbin/quickml
sbin/quickml-ctl
@unexec if cmp -s %D/etc/quickmlrc %D/etc/quickmlrc.sample; then rm -f %D/etc/quickmlrc; fi
etc/quickmlrc.sample
etc/rc.d/quickml.sh
%%DATADIR%%/messages.ja
@dirrm %%DATADIR%%
@dirrm %%RUBY_LIBDIR%%/quickml