From: Benjamin Schweikert Date: Sun, 21 Feb 2010 19:58:23 +0000 (+0100) Subject: New naoki file: squashfs-tools. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe1ed6a4940da8508c51bd76123c56dfb77aef57;p=ipfire-3.x.git New naoki file: squashfs-tools. --- diff --git a/pkgs/core/squashfs-tools/squashfs-tools.nm b/pkgs/core/squashfs-tools/squashfs-tools.nm new file mode 100644 index 000000000..e440b2ca1 --- /dev/null +++ b/pkgs/core/squashfs-tools/squashfs-tools.nm @@ -0,0 +1,57 @@ +############################################################################### +# # +# 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 . # +# # +############################################################################### + +############################################################################### +# Definitions +############################################################################### + +include $(PKGROOT)/Include + +PKG_NAME = squashfs-tools +PKG_VER = 4.0 +PKG_REL = 0 + +PKG_MAINTAINER = +PKG_GROUP = System/Filesystem +PKG_URL = http://squashfs.sf.net/ +PKG_LICENSE = GPLv2+ +PKG_SUMMARY = Utility for the creation of squashfs filesystems. + +define PKG_DESCRIPTION + Squashfs is a highly compressed read-only filesystem for Linux. +endef + +PKG_TARBALL = squashfs$(PKG_VER).tar.gz + +############################################################################### +# Installation Details +############################################################################### + +define STAGE_BUILD + mv /usr/src/squashfs4.0 $(DIR_APP) + cd $(DIR_APP)/$(PKG_NAME) && sed -e "s/^CFLAGS := /& $(CFLAGS) /" -i Makefile + cd $(DIR_APP)/$(PKG_NAME) && make $(PARALLELISMFLAGS) +endef + +define STAGE_INSTALL + -mkdir -pv $(BUILDROOT)/usr/bin + cd $(DIR_APP)/$(PKG_NAME) && install -m 755 mksquashfs $(BUILDROOT)/usr/bin + cd $(DIR_APP)/$(PKG_NAME) && install -m 755 unsquashfs $(BUILDROOT)/usr/bin +endef