diff options
author | timur <timur@FreeBSD.org> | 2008-09-05 07:10:40 +0800 |
---|---|---|
committer | timur <timur@FreeBSD.org> | 2008-09-05 07:10:40 +0800 |
commit | 4e0c4f0a79272d9930e24ebd87abfa34d14536e2 (patch) | |
tree | 0241244d5f47dc0e868c5e8c14094961ef70d0b5 /net/samba-smbclient | |
parent | 7c0cf9026eb09e15500a743a9ca9ec4c7ad30cc6 (diff) | |
download | freebsd-ports-gnome-4e0c4f0a79272d9930e24ebd87abfa34d14536e2.tar.gz freebsd-ports-gnome-4e0c4f0a79272d9930e24ebd87abfa34d14536e2.tar.zst freebsd-ports-gnome-4e0c4f0a79272d9930e24ebd87abfa34d14536e2.zip |
Fixed cleanup on deinstallation.
Diffstat (limited to 'net/samba-smbclient')
-rw-r--r-- | net/samba-smbclient/Makefile | 7 | ||||
-rw-r--r-- | net/samba-smbclient/pkg-plist | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/net/samba-smbclient/Makefile b/net/samba-smbclient/Makefile index e0790d2ef0a4..4d91c5c4431b 100644 --- a/net/samba-smbclient/Makefile +++ b/net/samba-smbclient/Makefile @@ -11,8 +11,6 @@ PKGNAMESUFFIX= -smbclient COMMENT= Samba "ftp-like" client -BROKEN= leaves files behind on deinstallation - CONFLICTS= ja-samba-2.* ja-samba-3.* samba-2.* samba-3.* SAMBA_CONFIG= smb-client.conf @@ -26,8 +24,9 @@ PKGDIR= ${.CURDIR} WITHOUT_ADS= yes MAN1= smbclient.1 -PLIST_FILES= bin/smbclient \ - ${SAMBA_CONFDIR:S,^${PREFIX}/,,}/${SAMBA_CONFIG}.sample + +PLIST_SUB+= SAMBA_CONFDIR="${SAMBA_CONFDIR:S,^${PREFIX}/,,}" \ + SAMBA_CONFIG="${SAMBA_CONFIG}" do-build: cd ${WRKSRC} && ${MAKE} include/proto.h diff --git a/net/samba-smbclient/pkg-plist b/net/samba-smbclient/pkg-plist new file mode 100644 index 000000000000..d12567727048 --- /dev/null +++ b/net/samba-smbclient/pkg-plist @@ -0,0 +1,3 @@ +bin/smbclient +@unexec if cmp -s %D/%%SAMBA_CONFDIR%%/%%SAMBA_CONFIG%% %D/%%SAMBA_CONFDIR%%/%%SAMBA_CONFIG%%.sample; then rm -f %D/%%SAMBA_CONFDIR%%/%%SAMBA_CONFIG%%; fi +%%SAMBA_CONFDIR%%/%%SAMBA_CONFIG%%.sample |