aboutsummaryrefslogtreecommitdiff
path: root/net/samba-smbclient
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@FreeBSD.org>2008-09-04 23:10:40 +0000
committerTimur I. Bakeyev <timur@FreeBSD.org>2008-09-04 23:10:40 +0000
commit551661bc4381820709fc4210bbfc4f54f741358e (patch)
tree6890288849c3e15e679a37b2630f418277bed92c /net/samba-smbclient
parent35c62df75b5ed765a70ae93a3da55feb76ea77a1 (diff)
downloadports-551661bc4381820709fc4210bbfc4f54f741358e.tar.gz
ports-551661bc4381820709fc4210bbfc4f54f741358e.zip
Notes
Diffstat (limited to 'net/samba-smbclient')
-rw-r--r--net/samba-smbclient/Makefile7
-rw-r--r--net/samba-smbclient/pkg-plist3
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