diff options
-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 |