File bftpd-install.patch of Package bftpd

--- a/Makefile.in	2023-11-13 02:45:14.000000000 +0100
+++ b/Makefile.in	2025-04-22 13:49:07.820925104 +0200
@@ -37,18 +37,9 @@
 %.o: %.d
 
 install: all
-	mkdir -p $(DESTDIR)/$(prefix)/sbin
-	$(INSTALL) -g 0 -m 700 -o 0 bftpd $(DESTDIR)/$(prefix)/sbin
-	mkdir -p $(DESTDIR)/$(mandir)/man8
-	$(INSTALL) -g 0 -m 644 -o 0 bftpd.8 $(DESTDIR)/$(mandir)/man8
-	mkdir -p $(DESTDIR)/$(prefix)/etc
-	[ -f $(DESTDIR)/$(prefix)/etc/bftpd.conf ] || \
-		$(INSTALL) -g 0 -m 600 -o 0 bftpd.conf $(DESTDIR)/$(prefix)/etc
-	mkdir -p $(DESTDIR)/$(prefix)/var/log
-	touch $(DESTDIR)/$(prefix)/var/log/bftpd.log
-	chmod 644 $(DESTDIR)/$(prefix)/var/log/bftpd.log
-	mkdir -p $(DESTDIR)/$(prefix)/var/run/bftpd
-	chmod 755 $(DESTDIR)/$(prefix)/var/run/bftpd
+	$(INSTALL) -D -m 755 bftpd	-t	$(DESTDIR)/$(prefix)/sbin/
+	$(INSTALL) -D -m 644 bftpd.8	-t	$(DESTDIR)/$(mandir)/man8/
+	$(INSTALL) -D -m 644 bftpd.conf	-t	$(DESTDIR)/$(sysconfdir)/etc/
 
 clean distclean:
 	rm -f *~ $(OBJS) bftpd mksources.finished config.cache
@@ -61,8 +52,9 @@
 	./configure --enable-pax=pax --enable-libz --enable-pam
 
 uninstall:
+
 	rm -f $(DESTDIR)/$(prefix)/sbin/bftpd $(DESTDIR)/$(mandir)/man8/bftpd.8 \
-		$(DESTDIR)/$(prefix)/etc/bftpd.conf
+		$(DESTDIR)/$(sysconfdir)/bftpd.conf
 
 distribute: install
 	rm -rf dist
openSUSE Build Service is sponsored by