]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - pkgs/zerofree/zerofree.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / zerofree / zerofree.nm
index a007d14066626ddfaa78a43d8487dc82da6d1d4a..dc21ca82c119b105669a1df99cd692c51b1ae310 100644 (file)
@@ -1,42 +1,19 @@
 ###############################################################################
-#                                                                             #
-# 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
-
-PKG_NAME       = zerofree
-PKG_VER        = 1.0.1
-PKG_REL        = 1
+name       = zerofree
+version    = 1.0.1
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Filesystem/Tools
-PKG_URL        = http://intgat.tigress.co.uk/rmy/uml/
-PKG_LICENSE    = GPL+
-PKG_SUMMARY    = Utility to force unused ext2 inodes and blocks to zero.
+maintainer =
+groups     = Filesystem/Tools
+url        = http://intgat.tigress.co.uk/rmy/uml/
+license    = GPL+
+summary    = Utility to force unused ext2 inodes and blocks to zero.
 
-PKG_BUILD_DEPS+= e2fsprogs-devel
-
-define PKG_DESCRIPTION
+description
        zerofree is a utility to set unused filesystem inodes and blocks of an
        ext2 filesystem to zero.  This can improve the compressibility and
        privacy of an ext2 filesystem.
@@ -47,17 +24,27 @@ define PKG_DESCRIPTION
        WARNING: The filesystem to be processed should be unmounted or mounted
        read-only. The tool tries to check this before running, but you
        should be careful.
-endef
-
-PKG_TARBALL    = $(THISAPP).tgz
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make $(PARALLELISMFLAGS) \
-               CC="gcc $(CFLAGS)"
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/sbin
-       cd $(DIR_APP) && install -D -p -m 755 zerofree \
-               $(BUILDROOT)/usr/sbin
-endef
+end
+
+source_dl  = http://intgat.tigress.co.uk/rmy/uml/
+sources    = %{thisapp}.tgz
+
+build
+       requires
+               e2fsprogs-devel
+       end
+
+       build
+               make %{PARALLELISMFLAGS} CC="gcc %{CFLAGS}"
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/usr/sbin
+               install -D -p -m 755 zerofree %{BUILDROOT}/usr/sbin
+       end
+end
+
+packages
+       package zerofree
+       end
+end