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

- Convert to staging

Approved by:	portmgr (blanket)
This commit is contained in:
Bryan Drewery 2014-04-01 14:30:04 +00:00
parent 5416b34e37
commit 1b4bb08f39
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349858
3 changed files with 16 additions and 29 deletions

View File

@ -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 <bsd.port.pre.mk>
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 <bsd.port.post.mk>

View File

@ -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

View File

@ -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%%