- Redesign in pkg-plist, all directorys are now created removed

with respect of the configuration paths.
- Bumped PORTREVISION
This commit is contained in:
Dirk Meyer 2001-05-26 16:50:06 +00:00
parent 730d5de276
commit 03a6227a8c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=43089
2 changed files with 32 additions and 11 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= cnews
PORTVERSION= cr.g
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= news
MASTER_SITES= ftp://ftp.cs.toronto.edu/pub/c-news/ \
ftp://ftp.funet.fi/pub/unix/news/cnews/ \
@ -45,6 +45,8 @@ MAN8= cnewsdo.8cn expire.8cn explode.8cn mergeactive.8 \
rnews.8cn
PLIST_SUB+= NEWSBIN=${NEWSBIN:S=${PREFIX}/==}
PLIST_SUB+= NEWSCTL=${NEWSCTL:S=${PREFIX}/==}
PLIST_SUB+= NEWSARTS=${NEWSARTS:S=${PREFIX}/==}
PLIST_SUB+= NEWSOV=${NEWSOV:S=${PREFIX}/==}
MODIFY= conf/quiz.def \
conf/substitutions \

View File

@ -1,16 +1,6 @@
@comment Package is not complete without minimal /var/news installation :-(
@comment Basically just in.* and out.* /var/news might be a symbolic link
@comment and it might not exist yet :-(
@exec ln -sf %D/newsspool /var/news
@exec mkdir -p %D/newsspool/in.coming/bad
@exec cd %D/newsspool; mkdir -p out.going out.master out.nntp
@dirrm newsspool/in.coming/bad
@dirrm newsspool/in.coming
@dirrm newsspool/out.going
@dirrm newsspool/out.master
@dirrm newsspool/out.nntp
@unexec if [ -h %D/newsspool ]; then rm -f %D/newsspool; fi
@unexec if [ -d %D/newsspool ]; then rmdir %D/newsspool; fi
bin/checknews
bin/cnewsdo
bin/inews
@ -160,3 +150,32 @@ lib/libcnews.a
@dirrm %%NEWSCTL%%/bin
@dirrm %%NEWSCTL%%
@dirrm news
@exec mkdir %D/%%NEWSCTL%%/bin
@exec mkdir -p %%NEWSOV%%/control
@exec mkdir -p %%NEWSOV%%/junk
@exec mkdir -p %%NEWSOV%%/news/announce/newusers
@unexec rmdir %%NEWSOV%%/control
@unexec rmdir %%NEWSOV%%/junk
@unexec rmdir %%NEWSOV%%/news/announce/newusers
@unexec rmdir %%NEWSOV%%/news/announce
@unexec rmdir %%NEWSOV%%/news
@unexec rmdir %%NEWSOV%%
@exec mkdir -p %%NEWSARTS%%/control
@exec mkdir -p %%NEWSARTS%%/junk
@exec mkdir -p %%NEWSARTS%%/news/announce/newusers
@exec mkdir -p %%NEWSARTS%%/in.coming/bad
@exec mkdir -p %%NEWSARTS%%/out.going
@exec mkdir -p %%NEWSARTS%%/out.master
@exec mkdir -p %%NEWSARTS%%/out.nntp
@exec chown -R news.news %%NEWSARTS%%
@unexec rmdir %%NEWSARTS%%/control
@unexec rmdir %%NEWSARTS%%/junk
@unexec rmdir %%NEWSARTS%%/news/announce/newusers
@unexec rmdir %%NEWSARTS%%/news/announce
@unexec rmdir %%NEWSARTS%%/news
@unexec rmdir %%NEWSARTS%%/in.coming/bad
@unexec rmdir %%NEWSARTS%%/in.coming
@unexec rmdir %%NEWSARTS%%/out.going
@unexec rmdir %%NEWSARTS%%/out.master
@unexec rmdir %%NEWSARTS%%/out.nntp
@unexec rmdir %%NEWSARTS%%