diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2012-12-28 02:38:58 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2012-12-28 02:38:58 +0100 |
commit | 4e457e0efd0e5fd5df24c7e9ed63b02d0196ea8d (patch) | |
tree | 09580c92ca78e8b9b54d7ed8d6b79d7fcd6fd9ff /Makefile | |
parent | 6737a37e5666837a8f51a2f74bdebdd756151394 (diff) | |
download | netctl-4e457e0efd0e5fd5df24c7e9ed63b02d0196ea8d.tar.gz netctl-4e457e0efd0e5fd5df24c7e9ed63b02d0196ea8d.tar.xz |
Forking netcfg to netctl (1/2)
This commit contains the moving of files.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 73 |
1 files changed, 26 insertions, 47 deletions
@@ -1,74 +1,53 @@ -export VERSION = 3.1 +export VERSION = 0.1 -.PHONY: install install-docs docs tarball pkgbuild upload clean +.PHONY: install install-docs docs tarball pkgbuild clean install: install-docs # Configuration files - install -d $(DESTDIR)/etc/network.d/{examples,interfaces} - install -Dm644 config/netcfg $(DESTDIR)/etc/conf.d/netcfg - install -m644 config/iftab $(DESTDIR)/etc/iftab + install -d $(DESTDIR)/etc/network.d/{examples,hooks,interfaces} install -m644 docs/examples/* $(DESTDIR)/etc/network.d/examples/ # Libs - install -d $(DESTDIR)/usr/lib/network/{connections,hooks} - install -m644 src/{network,rfkill,8021x,globals} $(DESTDIR)/usr/lib/network/ - install -m755 src/connections/* $(DESTDIR)/usr/lib/network/connections/ - # Hooks - install -m755 src/hooks/* $(DESTDIR)/usr/lib/network/hooks/ + install -d $(DESTDIR)/usr/lib/network/connections + install -m644 src/lib/{8021x,globals,ip,rfkill} $(DESTDIR)/usr/lib/network/ + install -m644 src/lib/connections/* $(DESTDIR)/usr/lib/network/connections/ + install -m755 src/lib/{auto.action,network} $(DESTDIR)/usr/lib/network/ # Scripts install -d $(DESTDIR)/usr/bin install -m755 \ - scripts/netcfg \ - scripts/netcfg-daemon \ - scripts/netcfg-menu \ - scripts/netcfg-wpa_actiond \ - scripts/netcfg-wpa_actiond-action \ - scripts/wifi-menu \ + src/netctl \ + src/netctl-auto \ + src/wifi-menu \ $(DESTDIR)/usr/bin/ - install -Dm755 scripts/ifplugd.action $(DESTDIR)/etc/ifplugd/netcfg.action - install -Dm755 scripts/pm-utils $(DESTDIR)/usr/lib/pm-utils/sleep.d/50netcfg - # Daemons - install -Dm755 rc.d/net-set-variable $(DESTDIR)/etc/rc.d/functions.d/net-set-variable - install -m755 \ - rc.d/net-profiles \ - rc.d/net-rename \ - rc.d/net-auto-wired \ - rc.d/net-auto-wireless \ - $(DESTDIR)/etc/rc.d/ + install -Dm755 src/ifplugd.action $(DESTDIR)/etc/ifplugd/netctl.action + # Services install -d $(DESTDIR)/usr/lib/systemd/system - install -m644 \ - systemd/*.service \ - $(DESTDIR)/usr/lib/systemd/system/ + install -m644 services/*.service $(DESTDIR)/usr/lib/systemd/system/ install-docs: docs - install -d $(DESTDIR)/usr/share/man/{man5,man8} + install -d $(DESTDIR)/usr/share/man/{man1,man5,man7} + install -m644 docs/*.1 $(DESTDIR)/usr/share/man/man1/ install -m644 docs/*.5 $(DESTDIR)/usr/share/man/man5/ - install -m644 docs/*.8 $(DESTDIR)/usr/share/man/man8/ - install -d $(DESTDIR)/usr/share/doc/netcfg/contrib - install -m644 contrib/{*.hook,pm-utils.handler} $(DESTDIR)/usr/share/doc/netcfg/contrib/ + install -m644 docs/*.7 $(DESTDIR)/usr/share/man/man7/ docs: $(MAKE) -C $@ -tarball: netcfg-$(VERSION).tar.xz -netcfg-$(VERSION).tar.xz: | docs - cp scripts/netcfg{,.orig} - sed -i "s/NETCFG_VER=.*/NETCFG_VER=$(VERSION)/" scripts/netcfg +tarball: netctl-$(VERSION).tar.xz +netctl-$(VERSION).tar.xz: | docs + cp src/netctl{,.orig} + sed -i "s/NETCTL_VERSION=.*/NETCTL_VERSION=$(VERSION)/" src/netctl git stash save -q - git archive -o netcfg-$(VERSION).tar --prefix=netcfg-$(VERSION)/ stash + git archive -o netctl-$(VERSION).tar --prefix=netctl-$(VERSION)/ stash git stash pop -q - mv scripts/netcfg{.orig,} - tar --exclude-vcs --transform "s%^%netcfg-$(VERSION)/%" --owner=root --group=root --mtime=./netcfg-$(VERSION).tar -rf netcfg-$(VERSION).tar docs/*.[1-8] - xz netcfg-$(VERSION).tar + mv src/netctl{.orig,} + tar --exclude-vcs --transform "s%^%netctl-$(VERSION)/%" --owner=root --group=root --mtime=./netctl-$(VERSION).tar -rf netctl-$(VERSION).tar docs/*.[1-8] + xz netctl-$(VERSION).tar pkgbuild: PKGBUILD -PKGBUILD: netcfg-$(VERSION).tar.xz +PKGBUILD: netctl-$(VERSION).tar.xz sed -e "s/%pkgver%/$(VERSION)/" -e "s/%md5sum%/$(shell md5sum $< | cut -d ' ' -f 1)/" contrib/PKGBUILD > $@ -upload: netcfg-$(VERSION).tar.xz - md5sum $< > MD5SUMS.$(VERSION) - scp $< MD5SUMS.$(VERSION) gerolde.archlinux.org:/srv/ftp/other/netcfg/ - clean: $(MAKE) -C docs clean - -@rm -vf PKGBUILD *.xz MD5SUMS.* 2>/dev/null + -@rm -vf PKGBUILD *.xz 2>/dev/null |