diff options
author | dinoex <dinoex@FreeBSD.org> | 2004-10-19 09:45:29 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2004-10-19 09:45:29 +0800 |
commit | ec33fedcf223695448e5fee65f0ea978ccc87895 (patch) | |
tree | 15870a30df195375e1ce29348e4d9ea0f1f73ce4 /net | |
parent | 95605c67fbe7cf38c093ad506747ab2a6384974f (diff) | |
download | freebsd-ports-graphics-ec33fedcf223695448e5fee65f0ea978ccc87895.tar.gz freebsd-ports-graphics-ec33fedcf223695448e5fee65f0ea978ccc87895.tar.zst freebsd-ports-graphics-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/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile index 0b2cbb44a70..5fb0ba0b10c 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} |