summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 33c98a9..9b41431 100644
--- a/Makefile
+++ b/Makefile
@@ -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