From efb38fbb28a889f802e0e65dfd993a88bcdaa0be Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Sun, 15 Jul 2007 19:10:58 +0000 Subject: [PATCH] - Fix apxs invocation on package install - Properly clean up httpd.conf on package deinstall --- www/mod_log_dbd/Makefile | 1 + www/mod_log_dbd/pkg-plist | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/www/mod_log_dbd/Makefile b/www/mod_log_dbd/Makefile index ab871d594174..55d2593e2e43 100644 --- a/www/mod_log_dbd/Makefile +++ b/www/mod_log_dbd/Makefile @@ -6,6 +6,7 @@ PORTNAME= mod_log_dbd PORTVERSION= 0.2 +PORTREVISION= 1 CATEGORIES= www databases MASTER_SITES= http://bfoz.net/projects/${PORTNAME}/release/ diff --git a/www/mod_log_dbd/pkg-plist b/www/mod_log_dbd/pkg-plist index f4733556728d..97b0eddd22fb 100644 --- a/www/mod_log_dbd/pkg-plist +++ b/www/mod_log_dbd/pkg-plist @@ -1,4 +1,4 @@ -@unexec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%%APACHEMODDIR%%/%%AP_MODULE%% %%APACHEMODDIR%%/%%AP_MODULE%% -@exec %D/sbin/apxs -e -a -n %%AP_NAME%% %D/%F +@exec %D/sbin/apxs -e -A -n %%AP_NAME%% %D/%%APACHEMODDIR%%/%%AP_MODULE%% +@unexec /usr/bin/sed -i '' '/LoadModule %%AP_NAME%%_module/d' %D/%%APACHEETCDIR%%/httpd.conf @unexec echo "Don't forget to remove all mod_%%AP_NAME%% related directives in your httpd.conf"