aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2012-03-28 02:09:24 +0800
committerjgh <jgh@FreeBSD.org>2012-03-28 02:09:24 +0800
commit0c1957973b1e865c5deb7c7b4744efecc2c12409 (patch)
treed4d2bca78c37ac1ec97577b417b4467596542834
parent845b3367eda69a4197a9d15b20ec90f3a825e144 (diff)
downloadfreebsd-ports-gnome-0c1957973b1e865c5deb7c7b4744efecc2c12409.tar.gz
freebsd-ports-gnome-0c1957973b1e865c5deb7c7b4744efecc2c12409.tar.zst
freebsd-ports-gnome-0c1957973b1e865c5deb7c7b4744efecc2c12409.zip
- remove invalid post-deinstall target
- add pkg-deinstall file to account for desired functionality - bump PORTREVISION PR: ports/166057 Submitted by: jgh@ Approved by: maintainer timeout (15 days) Feature safe: yes
-rw-r--r--comms/umcs7840/Makefile6
-rw-r--r--comms/umcs7840/files/pkg-deinstall.in5
2 files changed, 8 insertions, 3 deletions
diff --git a/comms/umcs7840/Makefile b/comms/umcs7840/Makefile
index edf94cb22205..a27131311abf 100644
--- a/comms/umcs7840/Makefile
+++ b/comms/umcs7840/Makefile
@@ -7,6 +7,7 @@
PORTNAME= umcs7840
PORTVERSION= ${MAINVERSION}.${VERSIONDATE}
+PORTREVISION= 1
CATEGORIES= comms kld
MASTER_SITES= http://lev.serebryakov.spb.ru/download/umcs7840/
PKGNAMESUFFIX= -kmod
@@ -23,6 +24,8 @@ VERSIONDATE=20101210.57
KMODDIR?= /boot/modules
PLIST_SUB+= KMODDIR=${KMODDIR}
+SUB_LIST= KMODDIR=${KMODDIR}
+SUB_FILES= pkg-deinstall
MAKE_ENV+= KMODDIR=${KMODDIR}
MANCOMPRESSED= yes
@@ -39,7 +42,4 @@ IGNORE= requires FreeBSD 8.0 or later, please try driver from vendor site
post-install:
kldxref ${KMODDIR}
-post-deinstall:
- kldxref ${KMODDIR}
-
.include <bsd.port.post.mk>
diff --git a/comms/umcs7840/files/pkg-deinstall.in b/comms/umcs7840/files/pkg-deinstall.in
new file mode 100644
index 000000000000..5de13d7c3787
--- /dev/null
+++ b/comms/umcs7840/files/pkg-deinstall.in
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ "$2" = "DEINSTALL" ]; then
+ /usr/sbin/kldxref %%KMODDIR%%
+fi