blob: d350c8961c45eb358055500ac56cc11179617394 (
plain)
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
56
57
58
59
60
61
62
63
64
|
DESTDIR=
VERSION=2.2.1
VPATH = doc
install:
install -d $(DESTDIR)/usr/lib/network/{connections,hooks} $(DESTDIR)/etc/network.d/examples \
$(DESTDIR)/etc/network.d/hooks \
$(DESTDIR)/var/run/network/{interfaces,profiles} \
$(DESTDIR)/usr/bin/ $(DESTDIR)/etc/rc.d/ \
$(DESTDIR)/usr/share/man/{man5,man8} \
# Documentation
install -m644 examples/* $(DESTDIR)/etc/network.d/examples/
install -m644 src/iftab $(DESTDIR)/etc/iftab
install -m644 man/*.8 $(DESTDIR)/usr/share/man/man8
# Libs
install -m644 src/{network,wireless,8021x,globals} $(DESTDIR)/usr/lib/network
install -m755 src/connections/* ${DESTDIR}/usr/lib/network/connections
ln -s $(DESTDIR)/usr/lib/network/connections/ethernet $(DESTDIR)/usr/lib/network/connections/ethernet-iproute
# Hooks
install -m755 src/hooks/* ${DESTDIR}/usr/lib/network/hooks/
# 'Binaries'
install -m755 src/netcfg $(DESTDIR)/usr/bin/netcfg2
install -m755 src/netcfg-menu $(DESTDIR)/usr/bin/netcfg-menu
# Daemons
install -m755 src/net-profiles src/net-rename $(DESTDIR)/etc/rc.d
install-wireless:
install -d $(DESTDIR)/usr/lib/network/connections $(DESTDIR)/usr/bin \
$(DESTDIR)/etc/rc.d
install -m755 src-wireless/wireless-dbus $(DESTDIR)/usr/lib/network/connections
install -m755 src-wireless/netcfg-auto-wireless $(DESTDIR)/usr/bin
install -m755 src-wireless/net-auto $(DESTDIR)/etc/rc.d
install-docs: docs
install -d $(DESTDIR)/usr/share/doc/netcfg/contrib
install -m644 doc/*html $(DESTDIR)/usr/share/doc/netcfg/
install -m644 contrib/* $(DESTDIR)/usr/share/doc/netcfg/contrib/
docs: doc/*
for doc in $(?); do \
pandoc $$doc -o $$doc.html;\
done
tarball:
sed -i "s/NETCFG_VER=.*/NETCFG_VER=$(VERSION)/g" src/netcfg
mkdir -p netcfg-$(VERSION)
cp -r src src-wireless examples contrib man Makefile LICENSE README netcfg-$(VERSION)
tar -zcvf netcfg-$(VERSION).tar.gz netcfg-$(VERSION)
mv netcfg-$(VERSION).tar.gz ../
rm -rf netcfg-$(VERSION)
upload:
md5sum netcfg-$(VERSION)*gz > MD5SUMS.$(VERSION)
scp netcfg-$(VERSION)*gz MD5SUMS.$(VERSION) archlinux.org:/srv/ftp/other/netcfg/
clean:
rm doc/*html
rm *gz
rm -rf netcfg-*$(VERSION)
rm -rf pkg
rm MD5SUMS*
|