1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Use standard plist mecanism to create directories installed of a pkg-install script

This commit is contained in:
Baptiste Daroussin 2020-09-14 07:44:50 +00:00
parent 8aa416769a
commit cdc024ef7e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=548591
2 changed files with 6 additions and 15 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= smtptrapd
PORTVERSION= 1.6
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= SF
@ -11,7 +12,10 @@ COMMENT= RFC 2821 compliant SMTP service that always returns a 4xx soft error
USE_RC_SUBR= smtptrapd
PLIST_FILES= bin/smtptrapd
LICENSE= GPLv2
PLIST_FILES= bin/smtptrapd \
"@dir(,,0755) /var/run/smtptrapd-root"
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
@ -19,5 +23,6 @@ do-build:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/smtptrapd ${STAGEDIR}${PREFIX}/bin/
${MKDIR} ${STAGEDIR}/var/run/smtptrapd-root
.include <bsd.port.mk>

View File

@ -1,14 +0,0 @@
#!/bin/sh
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
install -d -m 0755 /var/run/smtptrapd-root
;;
*)
echo "Unexpected Argument $2."
exit 1
;;
esac
exit 0