diff options
author | feld <feld@FreeBSD.org> | 2013-08-30 09:47:21 +0800 |
---|---|---|
committer | feld <feld@FreeBSD.org> | 2013-08-30 09:47:21 +0800 |
commit | d10b1ab913dfaf5b8f667a3afbffa3267ef92049 (patch) | |
tree | 90aa7b0d88a248e6de37c6583b37f69647273038 /mail | |
parent | 6bb27254edc19a14af0fa012d206b7e909c72d50 (diff) | |
download | freebsd-ports-gnome-d10b1ab913dfaf5b8f667a3afbffa3267ef92049.tar.gz freebsd-ports-gnome-d10b1ab913dfaf5b8f667a3afbffa3267ef92049.tar.zst freebsd-ports-gnome-d10b1ab913dfaf5b8f667a3afbffa3267ef92049.zip |
- Cleanup
- Passes rclint / portlint
- Fix permissions at install
Approved by: swills (mentor)
Diffstat (limited to 'mail')
-rw-r--r-- | mail/archiveopteryx/Makefile | 15 | ||||
-rw-r--r-- | mail/archiveopteryx/pkg-deinstall | 10 | ||||
-rw-r--r-- | mail/archiveopteryx/pkg-install | 15 | ||||
-rw-r--r-- | mail/archiveopteryx/pkg-plist | 7 |
4 files changed, 16 insertions, 31 deletions
diff --git a/mail/archiveopteryx/Makefile b/mail/archiveopteryx/Makefile index a74cea77324b..8e1950f254bf 100644 --- a/mail/archiveopteryx/Makefile +++ b/mail/archiveopteryx/Makefile @@ -1,16 +1,11 @@ -# New ports collection makefile for: archiveopteryx -# Date created: 2010-09-15 -# Whom: Ashish SHUKLA <ashish@FreeBSD.org> -# +# Created by: Ashish SHUKLA <ashish@FreeBSD.org> # $FreeBSD$ -# PORTNAME= archiveopteryx PORTVERSION= 3.1.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= mail -MASTER_SITES= http://archiveopteryx.org/%SUBDIR%/ -MASTER_SITE_SUBDIR= download +MASTER_SITES= http://archiveopteryx.org/download/ MAINTAINER= feld@FreeBSD.org COMMENT= An advanced PostgreSQL-based IMAP/POP server @@ -22,7 +17,7 @@ BUILD_DEPENDS= jam:${PORTSDIR}/devel/jam USE_BZIP2= yes USE_PERL5_BUILD= yes - +USE_PGSQL= yes MAN5= aoxsuper.conf.5 archiveopteryx.conf.5 MAN8= aox.8 aoximport.8 archiveopteryx.8 deliver.8 installer.8 logd.8 \ @@ -46,7 +41,7 @@ post-patch: -e 's,%%PREFIX%%,${PREFIX},g' do-build: - @cd ${WRKSRC} && ${JAM} -j${MAKE_JOBS_NUMBER} + @cd ${WRKSRC} && ${JAM} do-install: @cd ${WRKSRC} && ${JAM} install diff --git a/mail/archiveopteryx/pkg-deinstall b/mail/archiveopteryx/pkg-deinstall deleted file mode 100644 index 5edef8a57b8c..000000000000 --- a/mail/archiveopteryx/pkg-deinstall +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -RMDIR=/bin/rmdir - -if [ "$2" = POST-DEINSTALL ]; then - for i in /var/db/aox/jail /var/db/aox/messages /var/run/aox; do - ${RMDIR} ${i} 2>/dev/null - done - ${RMDIR} /var/db/aox 2>/dev/null -fi diff --git a/mail/archiveopteryx/pkg-install b/mail/archiveopteryx/pkg-install index 0e6b9d4974a3..699261f65c6e 100644 --- a/mail/archiveopteryx/pkg-install +++ b/mail/archiveopteryx/pkg-install @@ -1,18 +1,11 @@ #!/bin/sh -MKDIR=/bin/mkdir -CHOWN=/usr/sbin/chown -CHMOD=/bin/chmod - +INSTALL=/usr/bin/install AOXGROUP=aox AOXUSER=aox if [ "$2" = POST-INSTALL ]; then - for i in /var/db/aox/jail /var/db/aox/messages; do - ${MKDIR} -m 700 -p ${i} - done - ${CHOWN} root:wheel /var/db/aox/jail - ${CHMOD} 700 /var/db/aox - ${MKDIR} /var/run/aox - ${CHOWN} ${AOXUSER}:${AOXGROUP} /var/db/aox /var/run/aox /var/db/aox/messages + ${INSTALL} -d -o root -g wheel -m 700 /var/db/aox/jail + ${INSTALL} -d -o ${AOXUSER} -g ${AOXGROUP} /var/db/aox/messages + ${INSTALL} -d -o ${AOXUSER} -g ${AOXGROUP} /var/run/aox fi diff --git a/mail/archiveopteryx/pkg-plist b/mail/archiveopteryx/pkg-plist index 64f1ce4006ac..0a348c2d236f 100644 --- a/mail/archiveopteryx/pkg-plist +++ b/mail/archiveopteryx/pkg-plist @@ -16,3 +16,10 @@ sbin/recorder @dirrm libexec/aox @dirrm libdata/aox @dirrm %%ETCDIR%% +@dirrmtry /var/db/aox/jail/messages +@dirrmtry /var/db/aox/jail/var/run +@dirrmtry /var/db/aox/jail/var +@dirrmtry /var/db/aox/jail +@dirrmtry /var/db/aox/messages +@dirrmtry /var/db/aox +@dirrmtry /var/run/aox |