]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - pkgs/core/gzip/gzip.nm
naoki: Initial checkin.
[people/amarx/ipfire-3.x.git] / pkgs / core / gzip / gzip.nm
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include ../../Config
26
27 PKG_NAME = gzip
28 PKG_VER = 1.3.13
29 PKG_REL = 0
30
31 PKG_MAINTAINER =
32 PKG_GROUP = Applications/Compression
33 PKG_URL = http://www.gzip.org/
34 PKG_LICENSE = GPLv2
35 PKG_SUMMARY = The GNU data compression program.
36
37 define PKG_DESCRIPTION
38 The gzip package contains the popular GNU gzip data compression \
39 program. Gzipped files have a .gz extension.
40 endef
41
42 PKG_TARBALL = $(THISAPP).tar.gz
43
44 # This patch modifies 'znew' so we don't use temporary files:
45 PKG_PATCHES += $(THISAPP)-openbsd-owl-tmp.patch
46
47 # Fix CVE 2006-4337
48 # (http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4337) and
49 # CVE 2006-4338 (http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-4338),
50 # against malformed gzip files:
51 PKG_PATCHES += $(THISAPP)-cve-2006-4337_len.patch
52 PKG_PATCHES += $(THISAPP)-cve-2006-4338.patch
53
54 include ../../Rules
55
56 ###############################################################################
57 # Installation Details
58 ###############################################################################
59
60 $(STAGE_BUILD): $(STAGE_PREPARE)
61 @$(PRE_BUILD)
62
63 # NO_ASM is for textrels.
64 cd $(DIR_APP) && \
65 DEFS=NO_ASM \
66 CPPFLAGS="-DHAVE_LSTAT" \
67 ./configure \
68 $(CONFIGURE_ARCH) \
69 --prefix=/usr \
70 --bindir=/bin
71
72 cd $(DIR_APP) && make $(PARALLELISMFLAGS)
73
74 @$(POST_BUILD)
75
76 $(STAGE_INSTALL): $(STAGE_BUILD)
77 @$(PRE_INSTALL)
78
79 cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
80
81 mv -v $(BUILDROOT)/bin/{gzexe,uncompress,zcmp,zdiff,zegrep} $(BUILDROOT)/usr/bin
82 mv -v $(BUILDROOT)/bin/{zfgrep,zforce,zgrep,zless,zmore,znew} $(BUILDROOT)/usr/bin
83
84 @$(POST_INSTALL)