diff options
-rw-r--r-- | comms/umcs7840/Makefile | 6 | ||||
-rw-r--r-- | comms/umcs7840/files/pkg-deinstall.in | 5 |
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 |