diff options
author | kris <kris@FreeBSD.org> | 2003-04-05 15:36:57 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-04-05 15:36:57 +0800 |
commit | 0bdc01612899759bdac9d7cdec3565c85f008b01 (patch) | |
tree | 6e861443448611ae77aa38ab6ac332a23a6562ba | |
parent | 6bf5892b87e6898ebb2138e2a7e5062b1279916b (diff) | |
download | freebsd-ports-graphics-0bdc01612899759bdac9d7cdec3565c85f008b01.tar.gz freebsd-ports-graphics-0bdc01612899759bdac9d7cdec3565c85f008b01.tar.zst freebsd-ports-graphics-0bdc01612899759bdac9d7cdec3565c85f008b01.zip |
Don't create a thttpd.sh.bak
Don't emit errors if directories under www/ cannot be removed
-rw-r--r-- | www/thttpd/Makefile | 2 | ||||
-rw-r--r-- | www/thttpd/pkg-plist | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/www/thttpd/Makefile b/www/thttpd/Makefile index 0c3b2a297d9..a6aa596a14e 100644 --- a/www/thttpd/Makefile +++ b/www/thttpd/Makefile @@ -63,7 +63,7 @@ do-install: @if [ ! -f ${PREFIX}/etc/rc.d/thttpd.sh ]; then \ ${ECHO} "Installing ${PREFIX}/etc/rc.d/thttpd.sh startup file."; \ ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/thttpd.sh ${PREFIX}/etc/rc.d/thttpd.sh; \ - ${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${PREFIX}/etc/rc.d/thttpd.sh; \ + ${REINPLACE_CMD} -i '' -e 's|%%PREFIX%%|${PREFIX}|g' ${PREFIX}/etc/rc.d/thttpd.sh; \ fi .if !defined(NOPORTDOCS) @${MKDIR} ${PREFIX}/share/doc/thttpd diff --git a/www/thttpd/pkg-plist b/www/thttpd/pkg-plist index e6c366e7f6b..fa27c02a182 100644 --- a/www/thttpd/pkg-plist +++ b/www/thttpd/pkg-plist @@ -10,7 +10,7 @@ www/cgi-bin/phf www/cgi-bin/redirect www/cgi-bin/ssi %%PORTDOCS%%@dirrm share/doc/thttpd -@dirrm www/cgi-bin -@dirrm www/data -@dirrm www/logs -@dirrm www +@unexec rmdir %D/www/cgi-bin 2> /dev/null || true +@unexec rmdir %D/www/data 2> /dev/null || true +@unexec rmdir %D/www/logs 2> /dev/null || true +@unexec rmdir %D/www 2> /dev/null || true |