openbsd-ports/net/pdnsd/patches/patch-Makefile_in
sturm 82c3506eb1 update to 1.2.3
from Dmitry Bogdan <dsb at imcs.dvgu.ru>
2005-11-25 10:45:39 +00:00

12 lines
423 B
Plaintext

--- Makefile.in.orig Mon Jul 11 20:37:41 2005
+++ Makefile.in Sun Nov 13 17:06:06 2005
@@ -584,7 +584,7 @@
$(mkinstalldirs) $(DESTDIR)$(cachedir)
test -f $(DESTDIR)$(cachedir)/pdnsd.cache || \
touch $(DESTDIR)$(cachedir)/pdnsd.cache
- if test `whoami` = "root"; then \
+ if test `userinfo -e _pdnsd`; then \
chown $(def_id) $(DESTDIR)$(cachedir)/pdnsd.cache; \
chown $(def_id) $(DESTDIR)$(cachedir); \
fi