summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorsada <sada@FreeBSD.org>2000-03-08 21:24:01 +0000
committersada <sada@FreeBSD.org>2000-03-08 21:24:01 +0000
commit2ec30c57c02d38cba0170c5a4f5a54cb342c8bb5 (patch)
treed0bbc47f614c5e35f2455fafb6f40708fc5085e5 /news
parentcd5e9e0654dc24bc4322ab70af325cf494a2ca70 (diff)
downloadFreeBSD-ports-2ec30c57c02d38cba0170c5a4f5a54cb342c8bb5.zip
FreeBSD-ports-2ec30c57c02d38cba0170c5a4f5a54cb342c8bb5.tar.gz
Build spool dirs when user install leafnode+ as a package.
PR: ports/17193 Submitted by: me Approved by: maintainer
Diffstat (limited to 'news')
-rw-r--r--news/leafnode+/Makefile17
-rw-r--r--news/leafnode+/files/INSTALL.in2
2 files changed, 4 insertions, 15 deletions
diff --git a/news/leafnode+/Makefile b/news/leafnode+/Makefile
index 2b19508..7bb1f83 100644
--- a/news/leafnode+/Makefile
+++ b/news/leafnode+/Makefile
@@ -47,19 +47,8 @@ do-install:
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/leafnode+
.endfor
.endif
-.if !exists{LEAFSPOOLDIR} || !exists{{LEAFLIBDIR}
- @${MKDIR} ${LEAFSPOOLDIR} ${LEAFLIBDIR}
- @${MKDIR} ${LEAFSPOOLDIR}/interesting.groups
- @${MKDIR} ${LEAFSPOOLDIR}/out.going
-.for dir_a in 0 1 2 3 4 5 6 7 8 9
-.for dir_b in 0 1 2 3 4 5 6 7 8 9
-.for dir_c in 0 1 2 3 4 5 6 7 8 9
- @${MKDIR} ${LEAFSPOOLDIR}/message.id/${dir_a}${dir_b}${dir_c}
-.endfor
-.endfor
-.endfor
- @${CHOWN} -R news:news ${LEAFSPOOLDIR} ${LEAFLIBDIR}
- @${CHMOD} 2750 ${LEAFSPOOLDIR}
-.endif
+
+post-install:
+ @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
diff --git a/news/leafnode+/files/INSTALL.in b/news/leafnode+/files/INSTALL.in
index 0e2da2b..dc5b702 100644
--- a/news/leafnode+/files/INSTALL.in
+++ b/news/leafnode+/files/INSTALL.in
@@ -2,7 +2,7 @@
# $FreeBSD$
LIBDIR=@LIBDIR@
SPOOLDIR=@SPOOLDIR@
-if [ x$2 = xPOST-INSTALL -a x$LEAFNODE_SETUP_WRKDIRS != x ]; then
+if [ x$2 = xPOST-INSTALL ]; then
if [ ! -d $LIBDIR ]; then
mkdir -p $LIBDIR
chown -R news.news $LIBDIR/.
OpenPOWER on IntegriCloud