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:
parent
8aa416769a
commit
cdc024ef7e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=548591
@ -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>
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user