updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / netams / mf.patch
blob3054b2fff19710fcf31798620d36b2aa59f6aa66
1 --- Makefile.old 2009-07-15 23:49:08.000000000 +0400
2 +++ Makefile 2009-07-16 00:47:24.000000000 +0400
3 @@ -35,25 +35,29 @@
4 cd src && make clean
6 webinstall:
7 - $(INSTALL) -d -m 755 $(PATH_TO_WWW)/cgi-bin/admin $(PATH_TO_WWW)/stat $(PATH_TO_WWW)/images
8 - $(INSTALL) -m 755 cgi-bin/*.cgi cgi-bin/*.pl cgi-bin/*.tmpl cgi-bin/*.res $(PATH_TO_WWW)/cgi-bin
9 - $(INSTALL) -m 755 cgi-bin/admin/*.cgi cgi-bin/admin/*.tmpl cgi-bin/admin/*.res $(PATH_TO_WWW)/cgi-bin/admin
10 - $(INSTALL) -m 644 cgi-bin/admin/.htaccess $(PATH_TO_WWW)/cgi-bin/admin
11 - $(INSTALL) -m 644 cgi-bin/images/*.gif cgi-bin/images/*.jpg $(PATH_TO_WWW)/images
12 - $(INSTALL) -m 644 addon/index.html $(PATH_TO_WWW)
13 - $(INSTALL) -m 644 addon/netams-apache $(PATH_TO_ETC)/netams-apache
14 + mkdir $(DESTDIR)$(PATH_TO_ETC)
15 + $(INSTALL) -d -m 755 $(DESTDIR)$(PATH_TO_WWW)/cgi-bin/admin $(DESTDIR)$(PATH_TO_WWW)/stat $(DESTDIR)$(PATH_TO_WWW)/images
16 + $(INSTALL) -m 755 cgi-bin/*.cgi cgi-bin/*.pl cgi-bin/*.tmpl cgi-bin/*.res $(DESTDIR)$(PATH_TO_WWW)/cgi-bin
17 + $(INSTALL) -m 755 cgi-bin/admin/*.cgi cgi-bin/admin/*.tmpl cgi-bin/admin/*.res $(DESTDIR)$(PATH_TO_WWW)/cgi-bin/admin
18 + $(INSTALL) -m 644 cgi-bin/admin/.htaccess $(DESTDIR)$(PATH_TO_WWW)/cgi-bin/admin
19 + $(INSTALL) -m 644 cgi-bin/images/*.gif cgi-bin/images/*.jpg $(DESTDIR)$(PATH_TO_WWW)/images
20 + $(INSTALL) -m 644 addon/index.html $(DESTDIR)$(PATH_TO_WWW)
21 + $(INSTALL) -m 644 addon/netams-apache $(DESTDIR)$(PATH_TO_ETC)/netams-apache
23 install: all webinstall
24 - $(INSTALL) src/netams $(DAEMONDIR)
25 - cd src ; $(INSTALL) $(PROG) $(SBINDIR) ; cd ..
26 - $(INSTALL) -d -m 644 $(MANDIR)/man8
27 - $(INSTALL) -m 644 doc/*.8 $(MANDIR)/man8
28 - $(INSTALL) -m 644 addon/netams.conf $(PATH_TO_ETC)/netams.conf.sample
29 - $(INSTALL) -m 644 addon/.netamsctl.rc $(PATH_TO_ETC)/.netamsctl.rc
30 - $(INSTALL) -m 644 addon/ru-networks.txt $(PATH_TO_ETC)/ru-networks.txt.sample
31 - $(INSTALL) -m 644 addon/ua-networks.txt $(PATH_TO_ETC)/ua-networks.txt.sample
32 + mkdir $(DESTDIR)/usr
33 + mkdir $(DESTDIR)$(DAEMONDIR)
34 + mkdir $(DESTDIR)$(PATH_TO_SCRIPTS)
35 + $(INSTALL) src/netams $(DESTDIR)$(DAEMONDIR)
36 + cd src ; $(INSTALL) $(PROG) $(DESTDIR)$(SBINDIR) ; cd ..
37 + $(INSTALL) -d -m 644 $(DESTDIR)$(MANDIR)/man8
38 + $(INSTALL) -m 644 doc/*.8 $(DESTDIR)$(MANDIR)/man8
39 + $(INSTALL) -m 644 addon/netams.conf $(DESTDIR)$(PATH_TO_ETC)/netams.conf.sample
40 + $(INSTALL) -m 644 addon/.netamsctl.rc $(DESTDIR)$(PATH_TO_ETC)/.netamsctl.rc
41 + $(INSTALL) -m 644 addon/ru-networks.txt $(DESTDIR)$(PATH_TO_ETC)/ru-networks.txt.sample
42 + $(INSTALL) -m 644 addon/ua-networks.txt $(DESTDIR)$(PATH_TO_ETC)/ua-networks.txt.sample
43 sed -e "s#DAEMONDIR#$(DAEMONDIR)#g" -e "s#PATH_TO_ETC#$(PATH_TO_ETC)#g" addon/$(STARTUP_SCRIPT) > /tmp/netams-startup.sh
44 - $(INSTALL) -m 755 /tmp/netams-startup.sh $(PATH_TO_SCRIPTS)/$(STARTUP_SCRIPT)
45 + $(INSTALL) -m 755 /tmp/netams-startup.sh $(DESTDIR)$(PATH_TO_SCRIPTS)/$(STARTUP_SCRIPT)
46 rm -f /tmp/netams-startup.sh
47 @echo
48 @echo "PLEASE READ THE DOCUMENTATION FIRST!"