zip: update to 3.0

--HG--
extra : convert_revision : d937dde525c4a3ee19fcfdb0ddc3a189b64ec441
This commit is contained in:
ojab 2009-12-21 14:49:10 +03:00
parent 38b9342695
commit 4c8007d868
2 changed files with 29 additions and 19 deletions

View File

@ -1,6 +1,6 @@
--- unix/Makefile.orig 2009-04-19 00:15:07.062942983 +0200 --- unix/Makefile 2009-12-21 14:24:24.000000000 +0300
+++ unix/Makefile 2009-04-19 00:18:01.606837606 +0200 +++ unix/Makefile.new 2009-12-21 14:28:30.000000000 +0300
@@ -34,10 +34,11 @@ BINFLAGS = 755 @@ -38,10 +38,11 @@
MANFLAGS = 644 MANFLAGS = 644
# target directories - where to install executables and man pages to # target directories - where to install executables and man pages to
@ -8,13 +8,13 @@
+DESTDIR = +DESTDIR =
+prefix = /usr +prefix = /usr
BINDIR = $(prefix)/bin BINDIR = $(prefix)/bin
manext=1 MANEXT=1
-MANDIR = $(prefix)/man/man$(manext) -MANDIR = $(prefix)/man/man$(MANEXT)
+MANDIR = $(prefix)/share/man/man$(manext) +MANDIR = $(prefix)/share/man/man$(MANEXT)
ZIPMANUAL = MANUAL ZIPMANUAL = zip.txt
PKGDIR = IZzip ZIPMANUALcloak = zipcloak.txt
VERSION = Version 2.32 ZIPMANUALnote = zipnote.txt
@@ -127,12 +128,10 @@ $(ZIPMANUAL): man/zip.1 @@ -157,18 +158,13 @@
# install # install
install: $(ZIPS) install: $(ZIPS)
@ -22,12 +22,21 @@
- $(INSTALL_PROGRAM) $(ZIPS) $(BINDIR) - $(INSTALL_PROGRAM) $(ZIPS) $(BINDIR)
- -cd $(BINDIR); $(CHMOD) $(BINFLAGS) $(ZIPS) - -cd $(BINDIR); $(CHMOD) $(BINFLAGS) $(ZIPS)
- -$(INSTALL_D) $(MANDIR) - -$(INSTALL_D) $(MANDIR)
- $(INSTALL) man/zip.1 $(MANDIR)/zip.$(manext) - $(INSTALL_PROGRAM) man/zip.1 $(MANDIR)/zip.$(MANEXT)
- $(CHMOD) $(MANFLAGS) $(MANDIR)/zip.$(manext) - $(CHMOD) $(MANFLAGS) $(MANDIR)/zip.$(MANEXT)
- $(INSTALL_PROGRAM) man/zipcloak.1 $(MANDIR)/zipcloak.$(MANEXT)
- $(CHMOD) $(MANFLAGS) $(MANDIR)/zipcloak.$(MANEXT)
- $(INSTALL_PROGRAM) man/zipnote.1 $(MANDIR)/zipnote.$(MANEXT)
- $(CHMOD) $(MANFLAGS) $(MANDIR)/zipnote.$(MANEXT)
- $(INSTALL_PROGRAM) man/zipsplit.1 $(MANDIR)/zipsplit.$(MANEXT)
- $(CHMOD) $(MANFLAGS) $(MANDIR)/zipsplit.$(MANEXT)
+ install -d $(DESTDIR)$(BINDIR) + install -d $(DESTDIR)$(BINDIR)
+ install -m 755 $(ZIPS) $(DESTDIR)$(BINDIR) + install -m 755 $(ZIPS) $(DESTDIR)$(BINDIR)
+ install -d $(DESTDIR)$(MANDIR) + install -d $(DESTDIR)$(MANDIR)
+ install -m 644 man/zip.1 $(DESTDIR)$(MANDIR)/zip.$(manext) + install -m 644 man/zip.1 $(DESTDIR)$(MANDIR)/zip.$(manext)ww
+ install -m 644 man/zipcloak.1 $(DESTDIR)$(MANDIR)/zipcloak.$(manext)ww
+ install -m 644 man/zipnote.1 $(DESTDIR)$(MANDIR)/zipnote.$(manext)ww
+ install -m 644 man/zipsplit.1 $(DESTDIR)$(MANDIR)/zipsplit.$(manext)ww
uninstall: uninstall:
-cd $(BINDIR); rm -f $(ZIPS) -cd $(BINDIR); rm -f $(ZIPS)

View File

@ -1,13 +1,14 @@
# Template build file for 'zip'. # Template build file for 'zip'.
pkgname=zip pkgname=zip
version=2.32 version=3.0
distfiles="ftp://ftp.info-zip.org/pub/infozip/src/zip232.tgz" distfiles="${SOURCEFORGE_SITE}/infozip/zip30.tar.gz"
wrksrc="zip30"
build_style=gnu_makefile build_style=gnu_makefile
make_build_target="-f unix/Makefile generic_gcc" make_build_target="-f unix/Makefile generic_gcc"
make_install_args="-f unix/Makefile" make_install_args="-f unix/Makefile"
short_desc="Create/update ZIP files compatible with pkzip" short_desc="Create/update ZIP files compatible with pkzip"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
checksum=d0d3743f732a9baa162f80d0c4567b9c545b41a3385825042113810f2a56eb2f checksum=f0e8bb1f9b7eb0b01285495a2699df3a4b766784c1765a8f1aeedf63c0806369
long_desc=" long_desc="
Zip is a compression and file packaging utility. It is compatible with Zip is a compression and file packaging utility. It is compatible with
PKZIP 2.04g (Phil Katz ZIP) for MSDOS systems. There is a companion to zip PKZIP 2.04g (Phil Katz ZIP) for MSDOS systems. There is a companion to zip