1
0
mirror of https://github.com/moparisthebest/sslh synced 2024-11-25 02:22:19 -05:00

Fix for RPM

- RPM doesn't support root, so for the chroot environment we must define a destdir of RPM %{buildroot}.

- Preserve the timestamp.
This commit is contained in:
Christopher Meng 2013-08-10 15:06:49 +08:00
parent c60696a6d5
commit bde20dbaa5

View File

@ -60,8 +60,8 @@ release:
# generic install: install binary and man page # generic install: install binary and man page
install: sslh $(MAN) install: sslh $(MAN)
install -D sslh-fork $(PREFIX)/sbin/sslh install -pD sslh-fork $(DESTDIR)$(PREFIX)/sbin/sslh
install -D -m 0644 $(MAN) $(PREFIX)/share/man/man8/$(MAN) install -pD -m 0644 $(MAN) $(DESTDIR)$(PREFIX)/share/man/man8/$(MAN)
# "extended" install for Debian: install startup script # "extended" install for Debian: install startup script
install-debian: install sslh $(MAN) install-debian: install sslh $(MAN)
@ -71,7 +71,7 @@ install-debian: install sslh $(MAN)
update-rc.d sslh defaults update-rc.d sslh defaults
uninstall: uninstall:
rm -f $(PREFIX)/sbin/sslh $(PREFIX)/share/man/man8/$(MAN) /etc/init.d/sslh /etc/default/sslh rm -f $(DESTDIR)$(PREFIX)/sbin/sslh $(DESTDIR)$(PREFIX)/share/man/man8/$(MAN) $(DESTDIR)/etc/init.d/sslh $(DESTDIR)/etc/default/sslh
update-rc.d sslh remove update-rc.d sslh remove
clean: clean: