]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - pkgs/findutils/findutils.nm
Change file layout of the makefiles.
[people/ms/ipfire-3.x.git] / pkgs / findutils / findutils.nm
index ddcd6c8a2ccd88fd524c3f7f2f29250ae8a2b71a..335aa68c990877301ccdeb37d33822687cf141c5 100644 (file)
@@ -1,63 +1,50 @@
 ###############################################################################
-#                                                                             #
-# 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       = findutils
-PKG_VER        = 4.5.10
-PKG_REL        = 1
+name       = findutils
+version    = 4.5.10
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base System/Tools
-PKG_URL        = http://www.gnu.org/software/findutils/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = The GNU versions of find utilities (find and xargs).
+groups     = Base Build System/Tools
+url        = http://www.gnu.org/software/findutils/
+license    = GPLv3+
+summary    = The GNU versions of find utilities (find and xargs).
 
-PKG_BUILD_DEPS+= libselinux-devel
-
-define PKG_DESCRIPTION
+description
        The findutils package contains programs which will help you locate \
        files on your system.  The find utility searches through a hierarchy \
        of directories looking for files which match a certain set of criteria \
        (such as a filename pattern).  The xargs utility builds and executes \
        command lines from standard input arguments (usually lists of file \
        names generated by the find command).
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libselinux-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       configure_options += \
+               --libexecdir=/usr/lib/findutils \
+               --localstatedir=/var/lib/locate
 
-CONFIGURE_OPTIONS += \
-       --libexecdir=/usr/lib/findutils \
-       --localstatedir=/var/lib/locate
+       test
+               make check
+       end
 
-define STAGE_TEST
-       cd $(DIR_APP) && make check
-endef
+       install_cmds
+               mkdir -pv %{BUILDROOT}/bin
+               mv -v %{BUILDROOT}/usr/bin/find %{BUILDROOT}/bin
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/bin
-       mv -v $(BUILDROOT)/usr/bin/find $(BUILDROOT)/bin
+               sed -i -e 's/find:=${BINDIR}/find:=\/bin/' %{BUILDROOT}/usr/bin/updatedb
+       end
+end
 
-       sed -i -e 's/find:=$${BINDIR}/find:=\/bin/' $(BUILDROOT)/usr/bin/updatedb
-endef
+packages
+       package %{name}
+       end
+end