-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdsnpd-Makefile.in
55 lines (46 loc) · 1.82 KB
/
dsnpd-Makefile.in
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
55
#
# Copyright (c) 2009-2011, Adrian Thurston <[email protected]>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
prefix = @prefix@
datarootdir = @datarootdir@
all: init-system new-site init.d-dsnpd
sedsubst = \
-e 's,\@prefix\@,@prefix@,g;' \
-e 's,\@sysconfdir\@,@sysconfdir@,g;' \
-e 's,\@datadir\@,@datadir@,g;' \
-e 's,\@localstatedir\@,@localstatedir@,g;' \
-e 's,\@datarootdir\@,@datarootdir@,g;' \
-e 's,\@DSNPD_USER\@,@DSNPD_USER@,g;' \
-e 's,\@DSNPK_USER\@,@DSNPK_USER@,g;' \
-e 's,\@NOTIF_USER\@,@NOTIF_USER@,g;' \
-e 's,\@PID_DIR\@,@PID_DIR@,g;'
init-system: init-system.sh
sed $(sedsubst) $< > $@
chmod +x $@
new-site: new-site.sh
sed $(sedsubst) $< > $@
chmod +x $@
init.d-dsnpd: init.d-dsnpd.sh
sed $(sedsubst) $< > $@
chmod +x $@
install: all
install -d @prefix@/share/dsnpd
install -m 755 init-system @prefix@/share/dsnpd/init-system
install -m 755 new-site @prefix@/share/dsnpd/new-site
install -m 755 init.d-dsnpd @prefix@/share/dsnpd/init.d-dsnpd
install -m 644 INSTALL @prefix@/share/dsnpd/INSTALL
install -m 644 PROTOCOL_VERSION @prefix@/share/dsnpd/PROTOCOL_VERSION
.PHONY: clean
clean:
rm -f init-system new-site init.d-dsnpd