From b3270460eac0b8b75956ef3bf14e738a82e04b77 Mon Sep 17 00:00:00 2001 From: alek Date: Sat, 5 Feb 2005 10:49:49 +0000 Subject: [PATCH] - Use SHARED_ONLY - Replace DEINSTALL script with @unexec and UNMESSAGE - Bump PKGNAME --- www/mod_log_sql/Makefile | 5 +++-- www/mod_log_sql/pkg/DEINSTALL | 26 -------------------------- www/mod_log_sql/pkg/PLIST | 3 ++- www/mod_log_sql/pkg/UNMESSAGE | 8 ++++++++ 4 files changed, 13 insertions(+), 29 deletions(-) delete mode 100644 www/mod_log_sql/pkg/DEINSTALL create mode 100644 www/mod_log_sql/pkg/UNMESSAGE diff --git a/www/mod_log_sql/Makefile b/www/mod_log_sql/Makefile index ae76d8d6097..f03bb0c828c 100644 --- a/www/mod_log_sql/Makefile +++ b/www/mod_log_sql/Makefile @@ -1,12 +1,13 @@ -# $OpenBSD: Makefile,v 1.6 2004/12/11 13:29:21 alek Exp $ +# $OpenBSD: Makefile,v 1.7 2005/02/05 10:49:49 alek Exp $ COMMENT= "Apache module for logging to an SQL database" # This port currently only works with archs supporting dynamic loading # and has Apache that supports DSO's. -NOT_FOR_ARCHS= ${NO_SHARED_ARCHS} +SHARED_ONLY= Yes DISTNAME= mod_log_sql-1.18 +PKGNAME= ${DISTNAME}p0 CATEGORIES= www HOMEPAGE= http://www.outoforder.cc/projects/apache/mod_log_sql/ diff --git a/www/mod_log_sql/pkg/DEINSTALL b/www/mod_log_sql/pkg/DEINSTALL deleted file mode 100644 index 838a7ac8090..00000000000 --- a/www/mod_log_sql/pkg/DEINSTALL +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# $OpenBSD: DEINSTALL,v 1.2 2003/07/19 22:41:25 naddy Exp $ - -set -e -PATH=/bin:/usr/bin:/sbin:/usr/sbin -PREFIX=${PKG_PREFIX:-/usr/local} -CONF=`apxs -q SYSCONFDIR`/httpd.conf -MODULE=/usr/lib/apache/modules/mod_log_sql.so - -rm -f ${MODULE} - -echo -echo "+---------------" -echo "| To completely deinstall the $1 package you" -echo "| need to perform these steps as root:" -echo "|" -echo "| edit ${CONF}" -echo "| remove the line: LoadModule log_sql_module" -echo "|" -echo "| Do not do this if you plan on re-installing the $1" -echo "| package at some future time." -echo "+---------------" -echo - -exit 0 diff --git a/www/mod_log_sql/pkg/PLIST b/www/mod_log_sql/pkg/PLIST index 47679a3fa04..b64e05193cb 100644 --- a/www/mod_log_sql/pkg/PLIST +++ b/www/mod_log_sql/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $OpenBSD: PLIST,v 1.2 2004/09/15 18:49:50 espie Exp $ +@comment $OpenBSD: PLIST,v 1.3 2005/02/05 10:49:49 alek Exp $ lib/mod_log_sql.so sbin/mod_log_sql-enable share/doc/mod_log_sql/ @@ -24,3 +24,4 @@ share/doc/mod_log_sql/up_g.png share/examples/mod_log_sql/ share/examples/mod_log_sql/create_tables.sql share/examples/mod_log_sql/make_combined_log.pl +@unexec rm -f /usr/lib/apache/modules/mod_log_sql.so diff --git a/www/mod_log_sql/pkg/UNMESSAGE b/www/mod_log_sql/pkg/UNMESSAGE new file mode 100644 index 00000000000..f26d361050c --- /dev/null +++ b/www/mod_log_sql/pkg/UNMESSAGE @@ -0,0 +1,8 @@ +To completely deinstall the mod_log_sql package you +need to perform these steps as root: + + edit /var/www/conf/httpd.conf + remove the line: LoadModule log_sql_module + +Do not do this if you plan on re-installing the +mod_log_sql package at some future time.