summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-07-23 19:47:21 +0000
committerjlam <jlam@pkgsrc.org>2004-07-23 19:47:21 +0000
commit4666a693977f37fd57eb7f8a26311f037cc246d9 (patch)
tree26fab50ccea644ddc766685f6691d8d136cbe508
parentcbd33f37fb14bc163e45096e98e3536aae640551 (diff)
downloadpkgsrc-4666a693977f37fd57eb7f8a26311f037cc246d9.tar.gz
We need to generate the PLIST or else binary packages won't be created
properly.
-rw-r--r--sysutils/webmin/DEINSTALL10
-rw-r--r--sysutils/webmin/Makefile27
-rw-r--r--sysutils/webmin/distinfo4
-rw-r--r--sysutils/webmin/patches/patch-aa11
4 files changed, 29 insertions, 23 deletions
diff --git a/sysutils/webmin/DEINSTALL b/sysutils/webmin/DEINSTALL
index 6d597f313cf..90d830f89b9 100644
--- a/sysutils/webmin/DEINSTALL
+++ b/sysutils/webmin/DEINSTALL
@@ -1,4 +1,4 @@
-# $NetBSD: DEINSTALL,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
+# $NetBSD: DEINSTALL,v 1.2 2004/07/23 19:47:21 jlam Exp $
WEBMIN_DIR="@WEBMIN_DIR@"
WEBMIN_ETCDIR="@WEBMIN_ETCDIR@"
@@ -7,11 +7,11 @@ case ${STAGE} in
DEINSTALL)
uninstall="${WEBMIN_ETCDIR}/uninstall.sh"
if [ -x ${uninstall} ]; then
- ${ECHO} "Removing ${PKGNAME}..."
${ECHO} "y" | ${uninstall}
- else
- ${ECHO} "Removing ${WEBMIN_DIR}..."
- ${RM} -rf ${WEBMIN_DIR}
fi
;;
+
+POST-DEINSTALL)
+ ${RM} -rf ${WEBMIN_DIR}
+ ;;
esac
diff --git a/sysutils/webmin/Makefile b/sysutils/webmin/Makefile
index 7379b321ab4..c50547180ff 100644
--- a/sysutils/webmin/Makefile
+++ b/sysutils/webmin/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
+# $NetBSD: Makefile,v 1.2 2004/07/23 19:47:21 jlam Exp $
DISTNAME= webmin-1.150-minimal
PKGNAME= ${DISTNAME:S/-minimal$//}
@@ -32,21 +32,18 @@ MESSAGE_SUBST+= WEBMIN_DIR=${WEBMIN_DIR}
USE_PKGINSTALL= yes
DEINSTALL_EXTRA_TMPL= ${.CURDIR}/DEINSTALL
RCD_SCRIPTS= webmin
-OWN_DIRS= ${WEBMIN_ETCDIR} ${WEBMIN_LOGDIR} ${WEBMIN_DIR}
+OWN_DIRS= ${WEBMIN_LOGDIR}
-## Don't register any of the files in ${WEBMIN_DIR}. We'll use Webmin's
-## own uninstall script to remove itself.
-##
-## # Dynamically generate the Webmin PLIST from the installed files.
-## WEBMIN_PLIST_FILES= \
-## ( cd ${PREFIX}; ${FIND} ${WEBMIN_SUBDIR} \! -type d -print ) \
-## | ${SORT} -u
-## WEBMIN_PLIST_DIRS= \
-## ( cd ${PREFIX}; ${FIND} ${WEBMIN_SUBDIR} -type d -print ) \
-## | ${SED} -e "s,^,@unexec ${RMDIR} -p %D/," \
-## -e "s,$$, 2>/dev/null || ${TRUE}," \
-## | ${SORT} -ur
-## GENERATE_PLIST+= ${WEBMIN_PLIST_FILES}; ${WEBMIN_PLIST_DIRS};
+# Dynamically generate the Webmin PLIST from the installed files.
+WEBMIN_PLIST_FILES= \
+ ( cd ${PREFIX}; ${FIND} ${WEBMIN_SUBDIR} \! -type d -print ) \
+ | ${SORT} -u
+WEBMIN_PLIST_DIRS= \
+ ( cd ${PREFIX}; ${FIND} ${WEBMIN_SUBDIR} -type d -print ) \
+ | ${SED} -e "s,^,@unexec ${RMDIR} -p %D/," \
+ -e "s,$$, 2>/dev/null || ${TRUE}," \
+ | ${SORT} -ur
+GENERATE_PLIST+= ${WEBMIN_PLIST_FILES}; ${WEBMIN_PLIST_DIRS};
do-configure:
for file in ${WRKSRC}/setup.sh; do \
diff --git a/sysutils/webmin/distinfo b/sysutils/webmin/distinfo
index 2f3e10b0793..a94babaf99f 100644
--- a/sysutils/webmin/distinfo
+++ b/sysutils/webmin/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
+$NetBSD: distinfo,v 1.2 2004/07/23 19:47:21 jlam Exp $
SHA1 (webmin-1.150-minimal.tar.gz) = 2bcc9ae2c9dddce70117d0061d5db3faed349019
Size (webmin-1.150-minimal.tar.gz) = 955826 bytes
-SHA1 (patch-aa) = 55dbbd25f3d5e3eddcabe86809da6f780703b617
+SHA1 (patch-aa) = ea7b6b7d3ce63b273a3ad09127631da51df13946
diff --git a/sysutils/webmin/patches/patch-aa b/sysutils/webmin/patches/patch-aa
index af6b0cbfba5..2fb22b0e919 100644
--- a/sysutils/webmin/patches/patch-aa
+++ b/sysutils/webmin/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
+$NetBSD: patch-aa,v 1.2 2004/07/23 19:47:21 jlam Exp $
--- setup.sh.orig Wed Jun 2 01:33:09 2004
+++ setup.sh
@@ -18,3 +18,12 @@ $NetBSD: patch-aa,v 1.1.1.1 2004/07/23 19:28:32 jlam Exp $
if [ "$noperlpath" = "" ]; then
echo "Inserting path to perl into scripts.."
(find "$wadir" -name '*.cgi' -print ; find "$wadir" -name '*.pl' -print) | $perl "$wadir/perlpath.pl" $perl -
+@@ -661,8 +663,6 @@ if [ "\$answer" = "y" ]; then
+ $config_dir/stop
+ echo "Running uninstall scripts .."
+ (cd "$wadir" ; WEBMIN_CONFIG=$config_dir WEBMIN_VAR=$var_dir LANG= "$wadir/run-uninstalls.pl")
+- echo "Deleting $wadir .."
+- rm -rf "$wadir"
+ echo "Deleting $config_dir .."
+ rm -rf "$config_dir"
+ echo "Done!"