: nply/foundationpkgs

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 
diff --git a/Makefile b/Makefile
index 9c82d86..5deb236 100644
--- a/Makefile
+++ b/Makefile
@@ -35,8 +35,8 @@ distribution:
 
 release:
 	git diff --exit-code v$(VERSION) -- otpw.html
-	rsync -t otpw-$(VERSION).tar.gz $(HOME)/public_html/download/
-	rsync -t otpw.html $(HOME)/public_html/
+	install otpw-$(VERSION).tar.gz -t $(HOME)/public_html/download/
+	install otpw.html -t $(HOME)/public_html/
 
 #PAMLIB=/lib/security
 PAMLIB=/lib/x86_64-linux-gnu/security
@@ -44,16 +44,16 @@ PAMLIB=/lib/x86_64-linux-gnu/security
 install: install-pam install-gen
 
 install-pam: pam_otpw.so pam_otpw.8.gz
-	rsync -t pam_otpw.so $(PAMLIB)/
-	rsync -t pam_otpw.8.gz /usr/share/man/man8/
+	install pam_otpw.so -t $(PAMLIB)/
+	install pam_otpw.8.gz -t /usr/share/man/man8/
 	perl -i.bak -pe 's/^(\@include common-auth)$$/\# $$1\nauth required pam_otpw.so/' /etc/pam.d/sshd
 	perl -i.bak -pe 's/^(ChallengeResponseAuthentication\s+)no$$/$$1yes/' \
 	  /etc/ssh/sshd_config
 	killall -SIGHUP sshd
 
 install-gen: otpw-gen otpw-gen.1.gz
-	rsync -t otpw-gen /usr/bin/
-	rsync -t otpw-gen.1.gz /usr/share/man/man1/
+	install otpw-gen -t /usr/bin/
+	install otpw-gen.1.gz -t /usr/share/man/man1/
 	-getent passwd otpw && \
 	  chown otpw /usr/bin/otpw-gen && chmod u+s /usr/bin/otpw-gen