From 0a51a03c93adf1db5ba3b4c97ab4299906c98845 Mon Sep 17 00:00:00 2001 From: MSVSphere Packaging Team Date: Wed, 10 Jan 2024 03:38:30 +0300 Subject: [PATCH] update --- ...ba18ff2981beb68f38ea817d0e8226950a85.patch | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 SOURCES/1201ba18ff2981beb68f38ea817d0e8226950a85.patch diff --git a/SOURCES/1201ba18ff2981beb68f38ea817d0e8226950a85.patch b/SOURCES/1201ba18ff2981beb68f38ea817d0e8226950a85.patch new file mode 100644 index 0000000..86f2412 --- /dev/null +++ b/SOURCES/1201ba18ff2981beb68f38ea817d0e8226950a85.patch @@ -0,0 +1,47 @@ +From 1201ba18ff2981beb68f38ea817d0e8226950a85 Mon Sep 17 00:00:00 2001 +From: Christopher Meng +Date: Fri, 15 Nov 2013 11:14:56 +0800 +Subject: [PATCH] Adaption for Fedora packaging. + +1. Preserve the timestamp.(Will help people to see the real time of files were generated) + +2. Correct the permissions for standard. As far as I can tell you, 755 is the standard for binaries and 644 is the standard for non-executable files. + +3. Add DESTDIR support as RPM needs to install files to a pseudo folder first which doesn't need to be granted any root access like /usr, and when we build RPMs we never use root to build. + +PS: I'm packaging pgpdump for Fedora. +--- + Makefile.in | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index a0269a3..b7528ff 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -8,7 +8,7 @@ LDFLAGS = @LDFLAGS@ + VERSION = `git tag | tail -1 | sed -e 's/v//'` + + RM = rm -f +-INSTALL = install -c ++INSTALL = install -cp + + INCS = pgpdump.h + SRCS = pgpdump.c types.c tagfuncs.c packet.c subfunc.c signature.c keys.c \ +@@ -37,10 +37,10 @@ distclean: + $(RM) $(OBJS) $(PROG) $(CNF) $(MKF) + + install: all +- $(INSTALL) -d $(bindir) +- $(INSTALL) -m 555 $(PROG) $(bindir) +- $(INSTALL) -d $(mandir)/man1 +- $(INSTALL) -m 444 $(MAN) $(mandir)/man1 ++ $(INSTALL) -d $(DESTDIR)$(bindir) ++ $(INSTALL) -pm755 $(PROG) $(DESTDIR)$(bindir) ++ $(INSTALL) -d $(DESTDIR)$(mandir)/man1 ++ $(INSTALL) -pm644 $(MAN) $(DESTDIR)$(mandir)/man1 + + archive: + git archive master -o ~/pgpdump-$(VERSION).tar --prefix=pgpdump-$(VERSION)/ +-- +1.8.4 +