###############################################################################
-# #
-# 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 = squashfs-tools
+version = 4.1
+release = 1
-PKG_NAME = squashfs-tools
-PKG_VER = 4.1
-PKG_REL = 1
+groups = System/Filesystem
+url = http://squashfs.sf.net/
+license = GPLv2+
+summary = Utility for the creation of squashfs filesystems.
-PKG_MAINTAINER =
-PKG_GROUPS = System/Filesystem
-PKG_URL = http://squashfs.sf.net/
-PKG_LICENSE = GPLv2+
-PKG_SUMMARY = Utility for the creation of squashfs filesystems.
-
-PKG_BUILD_DEPS+= libattr-devel xz-devel zlib-devel
+description
+ Squashfs is a highly compressed read-only filesystem for Linux.
+end
-# XXX This package has a very weird dependency to libgcc_s.so.1.
-# Can we fix this in a non-hacky way?
-PKG_DEPS += libgcc_s.so.1
+source_dl = http://downloads.sourceforge.net/project/%{name}/%{name}/%{thisapp}
+sources = squashfs-%{version}.tar.gz
-define PKG_DESCRIPTION
- Squashfs is a highly compressed read-only filesystem for Linux.
-endef
+build
+ requires
+ libattr-devel
+ xz-devel
+ zlib-devel
+ end
-PKG_TARBALL = squashfs-$(PKG_VER).tar.gz
+ DIR_APP = %{DIR_SRC}/squashfs/squashfs-tools
-DIR_APP = $(DIR_SRC)/squashfs/squashfs-tools
+ make_build_targets = RPM_OPT_FLAGS="%{CFLAGS}"
-define STAGE_BUILD
- cd $(DIR_APP) && make $(PARALLELISMFLAGS) RPM_OPT_FLAGS="$(CFLAGS)"
-endef
+ install
+ mkdir -pv %{BUILDROOT}/usr/bin
+ install -m 755 mksquashfs %{BUILDROOT}/usr/bin
+ install -m 755 unsquashfs %{BUILDROOT}/usr/bin
+ end
+end
-define STAGE_INSTALL
- -mkdir -pv $(BUILDROOT)/usr/bin
- cd $(DIR_APP) && install -m 755 mksquashfs $(BUILDROOT)/usr/bin
- cd $(DIR_APP) && install -m 755 unsquashfs $(BUILDROOT)/usr/bin
-endef
+# XXX This package has a very weird dependency to libgcc_s.so.1.
+# Can we fix this in a non-hacky way?
+packages
+ package %{name}
+ requires = libgcc_s.so.1
+ end
+end