X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=git-daemon%2FMakefile;h=ea76975c2936bc839c45c3e324f8d2d4d34455db;hb=5e8cb121d0061bf38eb33be82b0b026ddafeda63;hp=2d24274af9ae26b2346b7fbffe1b18281938b1b8;hpb=d36c5f7baf4f11c7d6765afac2f5fb9449b0e0a7;p=userv-utils.git 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/$$/\\/'