File: Makefile

package info (click to toggle)
netscript-2.4 5.5.5
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 480 kB
  • sloc: sh: 2,166; makefile: 86
file content (54 lines) | stat: -rw-r--r-- 1,585 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Edited for Debian GNU/Linux.
DESTDIR =

#
#  Installation Makefile for netscript-2.4
#
#  This is rude!  FIXME!

ETCDIR=/etc
CONFDIR=$(DESTDIR)$(ETCDIR)/netscript
NCONFDIR=$(CONFDIR)/network.conf.d
SBINDIR=$(DESTDIR)/sbin
USRSBINDIR=$(DESTDIR)/usr/sbin
INITDIR=$(DESTDIR)/etc/init.d
PPPETCDIR=$(DESTDIR)/$(ETCDIR)/ppp
PPPUPDIR=$(PPPETCDIR)/ip-up.d
PPPDOWNDIR=$(PPPETCDIR)/ip-down.d
UDEVLIBDIR=$(DESTDIR)/lib/udev
INSTALL=/usr/bin/install

dummy:
	echo "BLeep!"

install: dummy
	- mkdir -p $(SBINDIR)
	- mkdir -p $(UDEVLIBDIR)
	- mkdir -p $(CONFDIR)
	- mkdir -p $(NCONFDIR)
	- mkdir -p $(PPPUPDIR)
	- mkdir -p $(PPPDOWNDIR)
	- mkdir -p $(UDEVLIBDIR)
	$(INSTALL) -m 755 netscript $(SBINDIR)/netscript
	$(INSTALL) -m 755 wep.conf $(CONFDIR)
	$(INSTALL) -m 644 ipfilter.conf network.conf $(CONFDIR)
	$(INSTALL) -m 644 network.conf.d.00default-eth0-dhcp.conf $(NCONFDIR)/00default-eth0-dhcp.conf
	$(INSTALL) -m 644 if.conf qos.conf $(CONFDIR)
	$(INSTALL) -m 644 README.etc $(CONFDIR)/README
	$(INSTALL) -m 755 netscript-hotplug $(UDEVLIBDIR)/netscript-hotplug
	
#	touch $(CONFDIR)/iptables
#	touch $(CONFDIR)/ip6tables
#	chmod 0400 $(CONFDIR)/iptables $(CONFDIR)/ip6tables
	$(INSTALL) -m 755 netscript.ppp.ip-up $(PPPUPDIR)/netscript
	$(INSTALL) -m 755 netscript.ppp.ip-down $(PPPDOWNDIR)/netscript

install-ipfilter: dummy
	- mkdir -p $(SBINDIR)
	- mkdir -p $(CONFDIR)
	$(INSTALL) -m 755 netscript-ipfilter $(SBINDIR)/netscript
	$(INSTALL) -m 644 network-ipfilter.conf $(CONFDIR)/network.conf
	$(INSTALL) -m 644 ipfilter.conf $(CONFDIR)
	$(INSTALL) -m 644 README.etc $(CONFDIR)/README