###############################################################################
-# #
-# IPFire.org - A linux based firewall #
-# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
-# #
-# This program is free software: you can redistribute it and/or modify #
-# it under the terms of the GNU General Public License as published by #
-# the Free Software Foundation, either version 3 of the License, or #
-# (at your option) any later version. #
-# #
-# This program is distributed in the hope that it will be useful, #
-# but WITHOUT ANY WARRANTY; without even the implied warranty of #
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
-# GNU General Public License for more details. #
-# #
-# You should have received a copy of the GNU General Public License #
-# along with this program. If not, see <http://www.gnu.org/licenses/>. #
-# #
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team <info@ipfire.org> #
###############################################################################
-###############################################################################
-# Definitions
-###############################################################################
-
-include $(PKGROOT)/Include
+name = gzip
+version = 1.4
+release = 1
-PKG_NAME = gzip
-PKG_VER = 1.4
-PKG_REL = 0
+groups = Base Build Applications/Compression
+url = http://www.gzip.org/
+license = GPLv2
+summary = The GNU data compression program.
-PKG_MAINTAINER =
-PKG_GROUPS = Base Applications/Compression
-PKG_URL = http://www.gzip.org/
-PKG_LICENSE = GPLv2
-PKG_SUMMARY = The GNU data compression program.
-
-define PKG_DESCRIPTION
+description
The gzip package contains the popular GNU gzip data compression \
program. Gzipped files have a .gz extension.
-endef
+end
-PKG_TARBALL = $(THISAPP).tar.gz
+source_dl =
-define STAGE_BUILD
- # NO_ASM is for textrels.
- cd $(DIR_APP) && \
+build
+ build
+ # NO_ASM is for textrels.
DEFS=NO_ASM \
CPPFLAGS="-DHAVE_LSTAT" \
./configure \
--prefix=/usr \
--bindir=/bin
- cd $(DIR_APP) && make $(PARALLELISMFLAGS)
-endef
+ make %{PARALLELISMFLAGS}
+ end
+
+ test
+ make check
+ end
-define STAGE_TEST
- cd $(DIR_APP) && make check
-endef
+ install
+ make install DESTDIR=%{BUILDROOT}
-define STAGE_INSTALL
- cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT)
+ mkdir -pv %{BUILDROOT}/usr/bin
+ mv -v %{BUILDROOT}/bin/{gzexe,uncompress,zcmp,zdiff,zegrep} %{BUILDROOT}/usr/bin
+ mv -v %{BUILDROOT}/bin/{zfgrep,zforce,zgrep,zless,zmore,znew} %{BUILDROOT}/usr/bin
+ end
+end
- -mkdir -pv $(BUILDROOT)/usr/bin
- mv -v $(BUILDROOT)/bin/{gzexe,uncompress,zcmp,zdiff,zegrep} $(BUILDROOT)/usr/bin
- mv -v $(BUILDROOT)/bin/{zfgrep,zforce,zgrep,zless,zmore,znew} $(BUILDROOT)/usr/bin
-endef
+packages
+ package %{name}
+ end
+end