From c32f27101c1ec85cc00b6975a2a321a2878368a0 Mon Sep 17 00:00:00 2001 From: dinoex Date: Sat, 26 May 2001 16:50:06 +0000 Subject: - Redesign in pkg-plist, all directorys are now created removed with respect of the configuration paths. - Bumped PORTREVISION --- news/cnews/Makefile | 4 +++- news/cnews/pkg-plist | 39 +++++++++++++++++++++++++++++---------- 2 files changed, 32 insertions(+), 11 deletions(-) (limited to 'news') diff --git a/news/cnews/Makefile b/news/cnews/Makefile index d15582dc7b7b..51cf0e161ed6 100644 --- a/news/cnews/Makefile +++ b/news/cnews/Makefile @@ -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 \ diff --git a/news/cnews/pkg-plist b/news/cnews/pkg-plist index 95b16ee83721..69a8327446f0 100644 --- a/news/cnews/pkg-plist +++ b/news/cnews/pkg-plist @@ -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%% -- cgit