aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2002-11-14 06:49:02 +0800
committernaddy <naddy@FreeBSD.org>2002-11-14 06:49:02 +0800
commit882839df7a7eb1cdf4970c894cec526afedea76d (patch)
tree21cfb965a8b2ba214cb7ceb6e8b05bbc93da1e1b
parent9de37846d34d8dba4c0f6cd09ac69e9251f0c7c1 (diff)
downloadfreebsd-ports-gnome-882839df7a7eb1cdf4970c894cec526afedea76d.tar.gz
freebsd-ports-gnome-882839df7a7eb1cdf4970c894cec526afedea76d.tar.zst
freebsd-ports-gnome-882839df7a7eb1cdf4970c894cec526afedea76d.zip
Fix pkg-deinstall handling.
Submitted by: Cyrille Lefevre <cyrille.lefevre@laposte.net>
-rw-r--r--french/plgrenouille/Makefile2
-rw-r--r--french/plgrenouille/pkg-deinstall37
2 files changed, 2 insertions, 37 deletions
diff --git a/french/plgrenouille/Makefile b/french/plgrenouille/Makefile
index c595428c302c..5e3feebbb46f 100644
--- a/french/plgrenouille/Makefile
+++ b/french/plgrenouille/Makefile
@@ -7,6 +7,7 @@
PORTNAME= plgrenouille
PORTVERSION= 0.61.5
+PORTREVISION= 1
CATEGORIES= french net
MASTER_SITES= ftp://blade.concept-micro.com/
DISTNAME= ${PORTNAME}_${PORTVERSION:R}-${PORTVERSION:E}
@@ -26,6 +27,7 @@ SCRIPTS_ENV= PKG_PREFIX=${PREFIX}
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
MSG_FILE= ${PKGDIR}/pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message
+PKGDEINSTALL= ${PKGINSTALL}
MAN1= plgrenouille.1
DOC_FILES= FAQ README
diff --git a/french/plgrenouille/pkg-deinstall b/french/plgrenouille/pkg-deinstall
deleted file mode 100644
index 581cd95f370e..000000000000
--- a/french/plgrenouille/pkg-deinstall
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/sh
-#
-# $FreeBSD$
-#
-# Configure plgrenouille.
-#
-
-[ $# != 2 ] && exit 1
-[ -z "${PKG_PREFIX}" ] && exit 1
-
-PORTNAME=plgrenouille
-SPOOL_DIR=/var/spool/${PORTNAME}
-SPOOL_MODES=u+rw,go-rw
-SPOOL_USER=daemon
-
-case "$2" in
-POST-INSTALL)
- if [ ! -d ${SPOOL_DIR} ]; then
- mkdir -p ${SPOOL_DIR} &&
- chmod ${SPOOL_MODES} ${SPOOL_DIR} &&
- chown ${SPOOL_USER} ${SPOOL_DIR}
- fi
- [ -n "${BATCH}" ] && exit 0
- [ -f ${PKG_PREFIX}/etc/rc.d/plgrenouille.sh ] &&
- sh ${PKG_PREFIX}/etc/rc.d/plgrenouille.sh configure
- ;;
-DEINSTALL)
- if [ -f ${PKG_PREFIX}/etc/rc.d/plgrenouille.sh ]; then
- sh ${PKG_PREFIX}/etc/rc.d/plgrenouille.sh stop
- fi
- ;;
-POST-DEINSTALL)
- if [ -d ${SPOOL_DIR} ]; then
- rm -rf ${SPOOL_DIR}
- fi
- ;;
-esac