X-Git-Url: https://git.distorted.org.uk/~mdw/userv-utils/blobdiff_plain/d36c5f7baf4f11c7d6765afac2f5fb9449b0e0a7..1ba0145fe6fe72f63af15e12716c13071523eaa4:/git-daemon/Makefile diff --git a/git-daemon/Makefile b/git-daemon/Makefile index 2d24274..ea76975 100644 --- a/git-daemon/Makefile +++ b/git-daemon/Makefile @@ -7,16 +7,23 @@ include ../settings.make -TARGETS= git-upload-pack inetd.conf git-daemon git-service +gituser= git +varloggit= $(varlog)/git -SUBSTVARS= libuserv etcuserv +TARGETS= git-upload-pack inetd.conf git-daemon git-service logrotate + +SUBSTVARS= libuserv etcuserv varloggit gituser + +CONFIGS= $(services)/git-upload-pack \ + $(etcuserv)/git-urlmap \ + $(etcdir)/logrotate.d/userv-git-daemon all: $(TARGETS) -sedscript: Makefile +sedscript: Makefile read-urlmap echo >$@.new '$(foreach f, $(SUBSTVARS), s,@$f@,$($f),g; )' echo >>$@.new '/@@READ_URLMAP@@/c\' - perl >>$@.new -pe 's/$$/\\/' >$@.new -pe 's/\\/\\\\/g; s/$$/\\/'