aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2004-10-19 09:45:29 +0800
committerdinoex <dinoex@FreeBSD.org>2004-10-19 09:45:29 +0800
commitec33fedcf223695448e5fee65f0ea978ccc87895 (patch)
tree15870a30df195375e1ce29348e4d9ea0f1f73ce4 /net
parent95605c67fbe7cf38c093ad506747ab2a6384974f (diff)
downloadfreebsd-ports-gnome-ec33fedcf223695448e5fee65f0ea978ccc87895.tar.gz
freebsd-ports-gnome-ec33fedcf223695448e5fee65f0ea978ccc87895.tar.zst
freebsd-ports-gnome-ec33fedcf223695448e5fee65f0ea978ccc87895.zip
- fix generated plist to preserve secrets.tdb
this affects only deinstallation, no version bump. PR: 72188
Diffstat (limited to 'net')
-rw-r--r--net/samba/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile
index 0b2cbb44a70f..5fb0ba0b10ca 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -279,7 +279,7 @@ post-install:
${ECHO_CMD} "@exec ${CAT} /etc/passwd | ${GREP} -v "^#" | ${PREFIX}/bin/make_smbpasswd > ${SAMBA_PRIVATE}/smbpasswd.default" | ${SED_PLIST} >> ${TMPPLIST}
${ECHO_CMD} "@exec ${TEST} -e ${SAMBA_PRIVATE}/smbpasswd || ${CP} -p ${SAMBA_PRIVATE}/smbpasswd.default ${SAMBA_PRIVATE}/smbpasswd" | ${SED_PLIST} >> ${TMPPLIST}
${ECHO_CMD} "@exec ${CHMOD} 600 ${SAMBA_PRIVATE}/smbpasswd*" | ${SED_PLIST} >> ${TMPPLIST}
- ${ECHO_CMD} "@unexec /usr/bin/cmp -s ${SAMBA_PRIVATE}/smbpasswd ${SAMBA_PRIVATE}/smbpasswd.default && ${RM} -f ${SAMBA_PRIVATE}/smbpasswd ${SAMBA_PRIVATE}/secrets.tdb || ${TRUE}" | ${SED_PLIST} >> ${TMPPLIST}
+ ${ECHO_CMD} "@unexec /usr/bin/cmp -s ${SAMBA_PRIVATE}/smbpasswd ${SAMBA_PRIVATE}/smbpasswd.default && ${RM} -f ${SAMBA_PRIVATE}/smbpasswd || ${TRUE}" | ${SED_PLIST} >> ${TMPPLIST}
${ECHO_CMD} "@unexec ${RM} -f ${SAMBA_PRIVATE}/smbpasswd.default" | ${SED_PLIST} >> ${TMPPLIST}
${ECHO_CMD} "@unexec ${RMDIR} ${SAMBA_PRIVATE} || (${ECHO_CMD} \"Warning: If you will *NOT* use this package anymore,\" && ${ECHO_CMD} \" please remove ${SAMBA_PRIVATE} and its contents manually.\")" | ${SED_PLIST} >> ${TMPPLIST}