From 8c40db4c8e56b4f37d98973954c3b00dbf3f5762 Mon Sep 17 00:00:00 2001 From: SADA Kenji Date: Wed, 8 Mar 2000 21:24:01 +0000 Subject: [PATCH] Build spool dirs when user install leafnode+ as a package. PR: ports/17193 Submitted by: me Approved by: maintainer --- news/leafnode+/Makefile | 17 +++-------------- news/leafnode+/files/INSTALL.in | 2 +- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/news/leafnode+/Makefile b/news/leafnode+/Makefile index 2b19508658f6..7bb1f8360652 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 diff --git a/news/leafnode+/files/INSTALL.in b/news/leafnode+/files/INSTALL.in index 0e2da2b4443c..dc5b702ffd3f 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/.