aboutsummaryrefslogtreecommitdiffstats
path: root/news/cnews
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2001-05-27 00:50:06 +0800
committerdinoex <dinoex@FreeBSD.org>2001-05-27 00:50:06 +0800
commitc32f27101c1ec85cc00b6975a2a321a2878368a0 (patch)
tree63a2aca65bfce71fdf4390910d538372b953d155 /news/cnews
parent031a3f929d500afeac7e9fd78b8b8fe6c7c434f5 (diff)
downloadfreebsd-ports-gnome-c32f27101c1ec85cc00b6975a2a321a2878368a0.tar.gz
freebsd-ports-gnome-c32f27101c1ec85cc00b6975a2a321a2878368a0.tar.zst
freebsd-ports-gnome-c32f27101c1ec85cc00b6975a2a321a2878368a0.zip
- Redesign in pkg-plist, all directorys are now created removed
with respect of the configuration paths. - Bumped PORTREVISION
Diffstat (limited to 'news/cnews')
-rw-r--r--news/cnews/Makefile4
-rw-r--r--news/cnews/pkg-plist39
2 files changed, 32 insertions, 11 deletions
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%%