aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2012-03-17 08:17:05 +0800
committercrees <crees@FreeBSD.org>2012-03-17 08:17:05 +0800
commit6173fab9eed8ee1d57c7912a4f60b4186a3d8c50 (patch)
tree9d394cc8c9881a7beb4243e874226e016ad844fd /mail
parent74c526703f26af9629c99c280b03b76604b10881 (diff)
downloadfreebsd-ports-graphics-6173fab9eed8ee1d57c7912a4f60b4186a3d8c50.tar.gz
freebsd-ports-graphics-6173fab9eed8ee1d57c7912a4f60b4186a3d8c50.tar.zst
freebsd-ports-graphics-6173fab9eed8ee1d57c7912a4f60b4186a3d8c50.zip
- Remove bogus post-deinstall target
PR: ports/166073 Submitted by: jgh - Use USERS - Use package dependencies for p5- dependencies, as per convention - Actually make pkg-install work correctly for packages using SUB_LIST rather than passing values in post-install Feature safe: yes
Diffstat (limited to 'mail')
-rw-r--r--mail/sympa5/Makefile48
-rw-r--r--mail/sympa5/files/pkg-install.in (renamed from mail/sympa5/pkg-install)40
-rw-r--r--mail/sympa5/pkg-deinstall21
3 files changed, 30 insertions, 79 deletions
diff --git a/mail/sympa5/Makefile b/mail/sympa5/Makefile
index 3366b2ccc12..58edb23f281 100644
--- a/mail/sympa5/Makefile
+++ b/mail/sympa5/Makefile
@@ -14,26 +14,33 @@ MASTER_SITES?= http://www.sympa.org/distribution/
MAINTAINER= crees@FreeBSD.org
COMMENT= Sympa is an electronic mailing list manager
-BUILD_DEPENDS+= ${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip \
- ${SITE_PERL}/IO/Stringy.pm:${PORTSDIR}/devel/p5-IO-stringy \
- ${SITE_PERL}/SOAP/Lite.pm:${PORTSDIR}/net/p5-SOAP-Lite \
- ${SITE_PERL}/MIME/EncWords.pm:${PORTSDIR}/mail/p5-MIME-EncWords \
- ${SITE_PERL}/File/NFSLock.pm:${PORTSDIR}/devel/p5-File-NFSLock \
- ${SITE_PERL}/Locale/TextDomain.pm:${PORTSDIR}/devel/p5-Locale-libintl \
- ${SITE_PERL}/Regexp/Common.pm:${PORTSDIR}/textproc/p5-Regexp-Common \
- ${SITE_PERL}/${PERL_ARCH}/Template.pm:${PORTSDIR}/www/p5-Template-Toolkit \
- ${SITE_PERL}/${PERL_ARCH}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML \
- ${SITE_PERL}/Crypt/CipherSaber.pm:${PORTSDIR}/security/p5-Crypt-CipherSaber \
- ${SITE_PERL}/mach/Crypt/OpenSSL/X509.pm:${PORTSDIR}/security/p5-Crypt-OpenSSL-X509 \
- ${SITE_PERL}/Net/LDAP.pm:${PORTSDIR}/net/p5-perl-ldap \
- ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
- ${LOCALBASE}/bin/mhonarc:${PORTSDIR}/www/mhonarc
+BUILD_DEPENDS+= \
+ p5-Archive-Zip>0:${PORTSDIR}/archivers/p5-Archive-Zip \
+ p5-IO-stringy>0:${PORTSDIR}/devel/p5-IO-stringy \
+ p5-SOAP-Lite>0:${PORTSDIR}/net/p5-SOAP-Lite \
+ p5-MIME-EncWords>0:${PORTSDIR}/mail/p5-MIME-EncWords \
+ p5-File-NFSLock>0:${PORTSDIR}/devel/p5-File-NFSLock \
+ p5-Locale-libintl>0:${PORTSDIR}/devel/p5-Locale-libintl \
+ p5-Regexp-Common>0:${PORTSDIR}/textproc/p5-Regexp-Common \
+ p5-Template-Toolkit>0:${PORTSDIR}/www/p5-Template-Toolkit \
+ p5-XML-LibXML>0:${PORTSDIR}/textproc/p5-XML-LibXML \
+ p5-Crypt-CipherSaber>0:${PORTSDIR}/security/p5-Crypt-CipherSaber \
+ p5-Crypt-OpenSSL-X509>0:${PORTSDIR}/security/p5-Crypt-OpenSSL-X509 \
+ p5-perl-ldap>0:${PORTSDIR}/net/p5-perl-ldap \
+ p5-DBI>0:${PORTSDIR}/databases/p5-DBI \
+ p5-HTML-Parser>0:${PORTSDIR}/www/p5-HTML-Parser \
+ ${LOCALBASE}/bin/mhonarc:${PORTSDIR}/www/mhonarc
RUN_DEPENDS:= ${BUILD_DEPENDS}
+USERS= sympa
+GROUPS= sympa
+SUB_FILES= pkg-install
+SUB_LIST= DB_TYPE=${DB_TYPE}
+
LATEST_LINK= sympa5
USE_APACHE= 20+
HAS_CONFIGURE= yes
-USE_PERL5= 5.8.6+
+USE_PERL5= yes
USE_GMAKE= yes
USE_GETTEXT= yes
CONFIGURE_ARGS+=--prefix=${PREFIX} \
@@ -76,6 +83,7 @@ PLIST_SUB+= NLS=""
.if !defined(WITHOUT_FASTCGI)
BUILD_DEPENDS+= ${LOCALBASE}/${APACHEMODDIR}/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/FCGI.pm:${PORTSDIR}/www/p5-FCGI
+SUB_LIST+= WITH_FASTCGI=yes
.endif
.if ${DB_TYPE} == "Oracle"
@@ -120,18 +128,12 @@ post-patch:
.endif
@${FIND} ${WRKSRC} -name "*.orig" -a -exec ${RM} -f {} \;
-pre-install:
- @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
-
post-install:
- @PKG_PREFIX=${PREFIX} DB_TYPE=${DB_TYPE} WITH_FASTCGI=${WITH_FASTCGI} \
- ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ @${SETENV} PKG_PREFIX=${PREFIX} \
+ ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${INSTALL_MAN} ${WRKSRC}/doc/man8/alias_manager.8 ${MAN8PREFIX}/man/man8/
@${INSTALL_MAN} ${WRKSRC}/doc/man8/archived.8 ${MAN8PREFIX}/man/man8/
@${INSTALL_MAN} ${WRKSRC}/doc/man8/bounced.8 ${MAN8PREFIX}/man/man8/
@${INSTALL_MAN} ${WRKSRC}/doc/man8/sympa.8 ${MAN8PREFIX}/man/man8/
-post-deinstall:
- @PKG_PREFIX=${PREFIX} ${SH} ${PKGDEINSTALL} ${PKGNAME} POST-DEINSTALL
-
.include <bsd.port.post.mk>
diff --git a/mail/sympa5/pkg-install b/mail/sympa5/files/pkg-install.in
index 7b37b790231..91c7963aa17 100644
--- a/mail/sympa5/pkg-install
+++ b/mail/sympa5/files/pkg-install.in
@@ -1,14 +1,14 @@
#!/bin/sh
#
-# $FreeBSD$
+# $FreeBSD: /tmp/pcvs/ports/mail/sympa5/files/Attic/pkg-install.in,v 1.1 2012-03-17 00:17:05 crees Exp $
#
if [ x"$2" = xPOST-INSTALL ]; then
echo "============================================================"
-if [ x"${DB_TYPE}" != "x" ]; then
+if [ x"%%DB_TYPE%%" != "x" ]; then
echo "If this is your first installation of sympa, please load"
- echo "this file with your ${DB_TYPE} database client:"
- echo " ${PKG_PREFIX}/bin/create_db.${DB_TYPE}"
+ echo "this file with your %%DB_TYPE%% database client:"
+ echo " ${PKG_PREFIX}/bin/create_db.%%DB_TYPE%%"
echo ""
fi
echo "A default configuration is installed,"
@@ -26,7 +26,7 @@ fi
echo " AddDefaultCharset UTF-8"
echo " DirectoryIndex wws"
echo " Options +Indexes"
-if [ x"${WITH_FASTCGI}" != x ]; then
+if [ x"%%WITH_FASTCGI%%" != x ]; then
echo " LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so"
echo " <Location /wws>"
echo " SetHandler fastcgi-script"
@@ -40,34 +40,4 @@ fi
exit 0
fi
-if [ x"$2" != xPRE-INSTALL ]; then
- exit 0
-fi
-
-USER=sympa
-GROUP=${USER}
-UID=200
-GID=${UID}
-
-if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then
- if pw groupadd ${GROUP} -g ${GID}; then
- echo "Added group \"${GROUP}\"."
- else
- echo "Adding group \"${GROUP}\" failed..."
- exit 1
- fi
-fi
-
-if ! pw usershow "${USER}" 2>/dev/null 1>&2; then
- if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
- -s /sbin/nologin -d /nonexistent \
- -c "Sympa Owner"; \
- then
- echo "Added user \"${USER}\"."
- else
- echo "Adding user \"${USER}\" failed..."
- exit 1
- fi
-fi
-
exit 0
diff --git a/mail/sympa5/pkg-deinstall b/mail/sympa5/pkg-deinstall
deleted file mode 100644
index 44a2a584ce2..00000000000
--- a/mail/sympa5/pkg-deinstall
+++ /dev/null
@@ -1,21 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-
-if [ "$2" != "POST-DEINSTALL" ]; then
- exit 0
-fi
-
-USER=sympa
-GROUP=${USER}
-
-if pw groupshow "${USER}" 2>/dev/null 1>&2; then
- echo "To delete the 'sympa' group permanently, use 'pw groupdel ${USER}'"
-fi
-
-if pw usershow "${USER}" 2>/dev/null 1>&2; then
- echo "To delete the 'sympa' user permanently, use 'pw userdel ${USER}'"
-fi
-
-exit 0