aboutsummaryrefslogtreecommitdiffstats
path: root/mail/quickml
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2010-09-04 02:02:26 +0800
committerbapt <bapt@FreeBSD.org>2010-09-04 02:02:26 +0800
commit3996fe5cb1ae851f5f499c16d0d9a882985d83ad (patch)
treea5aec9bcbba40a4a2d8d1db1ed00cadc24f1884e /mail/quickml
parente12f00af721df52611b2d9f0012a2aec684f05be (diff)
downloadfreebsd-ports-gnome-3996fe5cb1ae851f5f499c16d0d9a882985d83ad.tar.gz
freebsd-ports-gnome-3996fe5cb1ae851f5f499c16d0d9a882985d83ad.tar.zst
freebsd-ports-gnome-3996fe5cb1ae851f5f499c16d0d9a882985d83ad.zip
- Switch to USERS/GROUPS macros
- While here, add license PR: ports/148321 Submitted by: bapt (me) Approved by: maintainer timeout (9 weeks)
Diffstat (limited to 'mail/quickml')
-rw-r--r--mail/quickml/Makefile15
-rw-r--r--mail/quickml/files/pkg-install.in31
2 files changed, 5 insertions, 41 deletions
diff --git a/mail/quickml/Makefile b/mail/quickml/Makefile
index e0baa0c54bfc..68a3a5b1bfb0 100644
--- a/mail/quickml/Makefile
+++ b/mail/quickml/Makefile
@@ -17,23 +17,21 @@ COMMENT= An easy-to-use mailing list system
OPTIONS+= ANALOG "Enable quickml-analog" on \
LIMIT "Enable Creators and Members Limitation Patch" off
-PKGINSTALL= ${WRKDIR}/pkg-install
-SUB_FILES+= pkg-install
+USERS= quickml
+GROUPS= quickml
-QUICKML_USER= quickml
-QUICKML_GROUP= quickml
+LICENSE= GPLv2
USE_AUTOTOOLS= autoconf:262
GNU_CONFIGURE= yes
USE_RUBY= yes
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}"
-CONFIGURE_ARGS+= --with-user="${QUICKML_USER}"
-CONFIGURE_ARGS+= --with-group="${QUICKML_GROUP}"
+CONFIGURE_ARGS+= --with-user="${USERS}"
+CONFIGURE_ARGS+= --with-group="${GROUPS}"
CONFIGURE_ARGS+= --with-rubydir="${RUBY_LIBDIR}"
.include <bsd.port.pre.mk>
@@ -61,9 +59,6 @@ post-patch:
${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/without_quickml-analog
.endif
-pre-install:
- @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
-
post-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${WRKSRC}/messages.ja ${DATADIR}
diff --git a/mail/quickml/files/pkg-install.in b/mail/quickml/files/pkg-install.in
deleted file mode 100644
index 81d2623f3368..000000000000
--- a/mail/quickml/files/pkg-install.in
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD: /tmp/pcvs/ports/mail/quickml/files/Attic/pkg-install.in,v 1.1 2009-12-28 18:48:41 pgollucci 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