diff options
author | ache <ache@FreeBSD.org> | 2001-08-26 04:53:02 +0800 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2001-08-26 04:53:02 +0800 |
commit | 173294f51c1b6790490444306760eb6184689d13 (patch) | |
tree | e070bb380592ae4dcf428c76456d249cd3042b5b /www/apache13 | |
parent | 2c8a846b9254d0b4c3cec8301a339e767233400b (diff) | |
download | freebsd-ports-gnome-173294f51c1b6790490444306760eb6184689d13.tar.gz freebsd-ports-gnome-173294f51c1b6790490444306760eb6184689d13.tar.zst freebsd-ports-gnome-173294f51c1b6790490444306760eb6184689d13.zip |
Rewrite @exec's so final condition always be true on success
Submitted by: Jimmy Olgeni <olgeni@uli.it>
Diffstat (limited to 'www/apache13')
-rw-r--r-- | www/apache13/pkg-plist | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/www/apache13/pkg-plist b/www/apache13/pkg-plist index f362be309613..0ff3407e0b0d 100644 --- a/www/apache13/pkg-plist +++ b/www/apache13/pkg-plist @@ -3,19 +3,19 @@ bin/htdigest bin/htpasswd @unexec if cmp -s %D/etc/apache/access.conf %D/etc/apache/access.conf.default; then rm -f %D/etc/apache/access.conf; fi etc/apache/access.conf.default -@exec [ ! -f %B/access.conf ] && cp %B/%f %B/access.conf +@exec [ -f %B/access.conf ] || cp %B/%f %B/access.conf @unexec if cmp -s %D/etc/apache/httpd.conf %D/etc/apache/httpd.conf.default; then rm -f %D/etc/apache/httpd.conf; fi etc/apache/httpd.conf.default -@exec [ ! -f %B/httpd.conf ] && cp %B/%f %B/httpd.conf +@exec [ -f %B/httpd.conf ] || cp %B/%f %B/httpd.conf @unexec if cmp -s %D/etc/apache/magic %D/etc/apache/magic.default; then rm -f %D/etc/apache/magic; fi etc/apache/magic.default -@exec [ ! -f %B/magic ] && cp %B/%f %B/magic +@exec [ -f %B/magic ] || cp %B/%f %B/magic @unexec if cmp -s %D/etc/apache/mime.types %D/etc/apache/mime.types.default; then rm -f %D/etc/apache/mime.types; fi etc/apache/mime.types.default -@exec [ ! -f %B/mime.types ] && cp %B/%f %B/mime.types +@exec [ -f %B/mime.types ] || cp %B/%f %B/mime.types @unexec if cmp -s %D/etc/apache/srm.conf %D/etc/apache/srm.conf.default; then rm -f %D/etc/apache/srm.conf; fi etc/apache/srm.conf.default -@exec [ ! -f %B/srm.conf ] && cp %B/%f %B/srm.conf +@exec [ -f %B/srm.conf ] || cp %B/%f %B/srm.conf etc/rc.d/apache.sh include/apache/ap.h include/apache/ap_alloc.h @@ -105,8 +105,8 @@ share/doc/apache/README.rus @exec mkdir -p %D/www @exec ln -fs %B %D/www/data.default @unexec rm -f %D/www/data.default -@exec [ ! -d %D/www/data ] && ln -fs %B %D/www/data -@exec [ ! -d %D/www/cgi-bin ] && ln -fs %D/www/cgi-bin.default %D/www/cgi-bin +@exec [ -d %D/www/data ] || ln -fs %B %D/www/data +@exec [ -d %D/www/cgi-bin ] || ln -fs %D/www/cgi-bin.default %D/www/cgi-bin share/doc/apache/apache_pb.gif share/doc/apache/index.html.ca share/doc/apache/index.html.cz |