diff options
author | Alex Landau <alex.landau@xorcom.com> | 2008-12-14 14:47:43 +0000 |
---|---|---|
committer | Alex Landau <alex.landau@xorcom.com> | 2008-12-14 14:47:43 +0000 |
commit | 626edff649102539c65156f7191595957e711aec (patch) | |
tree | 3f8b86bba17c8954aae3535a760d309861172502 /Makefile | |
parent | 80ccc8a0cff45fff33c2d90f1e9118ea80658d9c (diff) |
rapid-tunneling:
- Created server part RPM.
git-svn-id: svn+ssh://xorcom/home/svn/debs/components/rapid-tunneling@6470 283159da-0705-0410-b60c-f2062b4bb6ad
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 17 insertions, 2 deletions
@@ -1,7 +1,10 @@ PACKAGE = rapid-tunneling SPEC = rapid-tunneling.spec -SOURCES = rapid-tunneling rapid-tunneling-status +SCRIPTS = rapid-tunneling rapid-tunneling-status rtadm rt-from-remote +CONFIGS = rtadm.config sshd_support_config +INIT_D = sshd_support +SOURCES = Makefile $(SPEC) $(SCRIPTS) $(CONFIGS) $(INIT_D) VER = $(shell awk '/^Version: / {print $$2}' $(SPEC)| head -n 1) REL = $(shell awk '/^Release: / {print $$2}' $(SPEC)| head -n 1) @@ -13,5 +16,17 @@ rpm: $(SPEC) SOURCES/$(PACKAGE)-$(VER).tar.gz [ -e SPECS ] || ln -s . SPECS cd SPECS; rpmbuild --target noarch --define "_topdir $(PWD)" -ba $(SPEC) -SOURCES/$(PACKAGE)-%.tar.gz: $(SOURCES) +SOURCES/$(PACKAGE)-$(VER).tar.gz: $(SOURCES) tar czf $@ --transform 's|^|$(PACKAGE)-$(VER)/|' $^ + +install: + install -m 755 -d $(DESTDIR)/usr/sbin + install -m 755 rapid-tunneling $(DESTDIR)/usr/sbin + install -m 755 rapid-tunneling-status $(DESTDIR)/usr/sbin + install -m 755 -d $(DESTDIR)/var/lib/rapid-tunneling + install -m 755 rtadm $(DESTDIR)/usr/sbin + install -m 755 rt-from-remote $(DESTDIR)/usr/sbin + install -m 755 -d $(DESTDIR)/etc/default + install -m 644 rtadm.config $(DESTDIR)/etc/default/rtadm + install -m 755 -d $(DESTDIR)/etc/ssh + install -m 644 sshd_support_config $(DESTDIR)/etc/ssh |