aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2001-08-06 17:08:10 +0800
committerknu <knu@FreeBSD.org>2001-08-06 17:08:10 +0800
commit3264d6041e0bb0aacefa9d0764d1532fd38472d4 (patch)
tree7e875db0917474019e3a2b83d1eb2834357200e3 /www
parent6c9b20558c6d5e9ebffeff290bad214ad3ef96bc (diff)
downloadfreebsd-ports-gnome-3264d6041e0bb0aacefa9d0764d1532fd38472d4.tar.gz
freebsd-ports-gnome-3264d6041e0bb0aacefa9d0764d1532fd38472d4.tar.zst
freebsd-ports-gnome-3264d6041e0bb0aacefa9d0764d1532fd38472d4.zip
Do not clobber the existing htdocs/index.html on installation.
Noted by: Kawaguti Ginga <ginga@athena.club.ne.jp>
Diffstat (limited to 'www')
-rw-r--r--www/wyvern/Makefile6
-rw-r--r--www/wyvern/files/patch-Makefile.in13
-rw-r--r--www/wyvern/pkg-plist4
3 files changed, 20 insertions, 3 deletions
diff --git a/www/wyvern/Makefile b/www/wyvern/Makefile
index 2629b71042bc..672210592b88 100644
--- a/www/wyvern/Makefile
+++ b/www/wyvern/Makefile
@@ -28,8 +28,14 @@ MAKE_ARGS= rcdir="${LOCALBASE}/etc/rc.d"
CONFIGURE_ARGS+= --enable-ipv6
.endif
+post-extract:
+ ${MV} ${WRKSRC}/htdocs/index.html ${WRKSRC}/htdocs/index.html-dist
+
post-install:
${LN} -sf ${PREFIX}/sbin/* ${LOCALBASE}/sbin/
+ if [ ! -f ${PREFIX}/htdocs/index.html ]; then \
+ ${CP} -p ${PREFIX}/htdocs/index.html-dist ${PREFIX}/htdocs/index.html; \
+ fi
@${CAT} ${PKGMESSAGE}
certificate:
diff --git a/www/wyvern/files/patch-Makefile.in b/www/wyvern/files/patch-Makefile.in
index c197e0ed1f5b..67f50830273b 100644
--- a/www/wyvern/files/patch-Makefile.in
+++ b/www/wyvern/files/patch-Makefile.in
@@ -1,5 +1,14 @@
---- Makefile.in.orig Mon Dec 11 01:06:38 2000
-+++ Makefile.in Sat Mar 3 23:29:15 2001
+--- Makefile.in.orig Sun Mar 4 22:41:15 2001
++++ Makefile.in Mon Aug 6 18:00:15 2001
+@@ -48,7 +48,7 @@
+ install_admin_md5 = dot.admin_passwd_md5
+ install_conf = wyvern.conf wyvern.conf.ja mime.types @ssl_cnf@
+ install_docs = AUTHORS ChangeLog LICENSE NEWS README TODO README.module README.en README.module.en LICENSE.en
+-install_htdocs = index.html
++install_htdocs = index.html-dist
+ install_admin = menu.whtml config.whtml passwd.whtml module.whtml roaming.whtml
+ install_samples = dot.waccess dot.wpasswd hosts.allow hosts.deny
+ install_rc_d = wyvern.sh
@@ -74,21 +74,20 @@
${INSTALL} -m 444 ${install_docs} ${docsdir}
-(cd ${confdir}; ${MV} wyvern.conf wyvern.conf.old)
diff --git a/www/wyvern/pkg-plist b/www/wyvern/pkg-plist
index 4a04c998da2d..70bedcf6e45c 100644
--- a/www/wyvern/pkg-plist
+++ b/www/wyvern/pkg-plist
@@ -44,7 +44,9 @@ wyvern/etc/.admin_passwd-dist
@unexec if cmp -s %D/wyvern/etc/.admin_passwd_md5 %D/wyvern/etc/.admin_passwd_md5-dist; then rm -f %D/wyvern/etc/.admin_passwd_md5; fi
wyvern/etc/.admin_passwd_md5-dist
@exec [ ! -f %B/.admin_passwd_md5 ] && cp %B/%f %B/.admin_passwd_md5
-wyvern/htdocs/index.html
+@unexec if cmp -s %D/wyvern/htdocs/index.html %D/wyvern/htdocs/index.html-dist; then rm -f %D/wyvern/htdocs/index.html; fi
+wyvern/htdocs/index.html-dist
+@exec [ ! -f %B/index.html ] && cp %B/%f %B/index.html
wyvern/icons/a.gif
wyvern/icons/alert.black.gif
wyvern/icons/alert.red.gif