From d53328efc4fcfa3c2f78dc447bd4c49d14b63727 Mon Sep 17 00:00:00 2001 From: bdrewery Date: Tue, 1 Apr 2014 14:30:04 +0000 Subject: - Convert to staging Approved by: portmgr (blanket) --- mail/simscan/Makefile | 18 +++++++++--------- mail/simscan/files/pkg-install.in | 20 -------------------- mail/simscan/pkg-plist | 7 +++++++ 3 files changed, 16 insertions(+), 29 deletions(-) delete mode 100644 mail/simscan/files/pkg-install.in (limited to 'mail') diff --git a/mail/simscan/Makefile b/mail/simscan/Makefile index e44f8513ec8a..c526b8225344 100644 --- a/mail/simscan/Makefile +++ b/mail/simscan/Makefile @@ -21,8 +21,8 @@ GROUPS= ${USERS} WORKDIR?= ${QMAIL_PREFIX}/${PORTNAME} QMAIL_QUEUE= ${QMAIL_PREFIX}/bin/qmail-queue -SUB_FILES= pkg-message \ - pkg-install +SUB_FILES= pkg-message + SUB_LIST= QMAIL_PREFIX=${QMAIL_PREFIX} \ SIMSCAN_DIR=${PORTNAME} PLIST_SUB= QMAIL_PREFIX=${QMAIL_PREFIX} \ @@ -41,7 +41,6 @@ PASSTHRU_DESC= Pass Spam Thru, Do Not Reject (required SPAMD) HEADERS_DESC= Add a Received Line With Versions of Scanners DSPAM_DESC= Turn on DSPAM scanning -NO_STAGE= yes .include CONFIGURE_ARGS=--enable-clamavdb-path=/var/db/clamav \ @@ -127,6 +126,10 @@ post-patch: ${WRKSRC}/configure @${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/cdb/conf-cc @${ECHO_CMD} "${CC} ${STRIP} ${LDFLAGS}" > ${WRKSRC}/cdb/conf-ld + @${ECHO_CMD} ${STAGEDIR}${PREFIX} > ${WRKSRC}/cdb/conf-home + @${REINPLACE_CMD} -e 's|@qmaildir@|$$(DESTDIR)@qmaildir@|' \ + -e 's|@workdir@|$$(DESTDIR)@workdir@|' \ + ${WRKSRC}/Makefile.in pre-configure: @${ECHO_MSG} "" @@ -148,17 +151,14 @@ pre-configure: @${ECHO_MSG} "" pre-install: - @${REINPLACE_CMD} -e 's|nobody|simscan|g' ${WRKSRC}/Makefile - @${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL + ${MKDIR} ${STAGEDIR}${QMAIL_PREFIX}/bin post-install: - @${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .endif - @${CAT} ${PKGMESSAGE} .include diff --git a/mail/simscan/files/pkg-install.in b/mail/simscan/files/pkg-install.in deleted file mode 100644 index b2307e0ed73c..000000000000 --- a/mail/simscan/files/pkg-install.in +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ - -USER=simscan -GROUP=${USER} -SIMDIR=%%QMAIL_PREFIX%%/%%SIMSCAN_DIR%% - -if [ "$2" = "POST-INSTALL" ]; then - - if [ ! -d "$SIMDIR" ]; then - /bin/mkdir -p "$SIMDIR" || exit 1 - /usr/sbin/chown "$USER:$GROUP" "$SIMDIR" || exit 1 - /bin/chmod 0750 "$SIMDIR" || exit 1 - /bin/chmod 04711 %%QMAIL_PREFIX%%/bin/simscan - /usr/sbin/chown $USER:$GROUP %%QMAIL_PREFIX%%/bin/simscan %%QMAIL_PREFIX%%/bin/simscanmk - fi -fi - -exit 0 diff --git a/mail/simscan/pkg-plist b/mail/simscan/pkg-plist index ee246cc68e98..fe91c3ffa341 100644 --- a/mail/simscan/pkg-plist +++ b/mail/simscan/pkg-plist @@ -1,4 +1,11 @@ @cwd %%QMAIL_PREFIX%% +@owner simscan +@group simscan bin/simscanmk +@mode 04711 bin/simscan +@mode +@owner root +@group wheel +@exec install -d -o simscan -g simscan -m 0750 %D/%%SIMSCAN_DIR%% @dirrmtry %%SIMSCAN_DIR%% -- cgit