]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - pkgs/lsof/lsof.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / lsof / lsof.nm
index c8f01c683cb6b304cef5b36750fc665c7089fdb3..527e45aa47b60846f3a760bff3033f11e0f8f9fb 100644 (file)
@@ -1,62 +1,49 @@
 ###############################################################################
-#                                                                             #
-# 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       = lsof
+version    = 4.82
+release    = 1
 
-PKG_NAME       = lsof
-PKG_VER        = 4.82
-PKG_REL        = 1
+groups     = Base Development/Debuggers
+url        = ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof
+license    = zlib
+summary    = A utility which lists open files on a Linux/UNIX system.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Base Development/Debuggers
-PKG_URL        = ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof
-PKG_LICENSE    = zlib
-PKG_SUMMARY    = A utility which lists open files on a Linux/UNIX system.
-
-PKG_BUILD_DEPS+= libselinux-devel
-
-define PKG_DESCRIPTION
+description
        Lsof stands for LiSt Open Files, and it does just that: \
        it lists information about files that are open by the \
        processes running on a system.
-endef
+end
+
+source_dl  =
+sources    = %{name}_%{version}_src.tar.gz
 
-PKG_TARBALL    = $(PKG_NAME)_$(PKG_VER)_src.tar.gz
+build
+       requires
+               libselinux-devel
+       end
 
-DIR_APP = /usr/src/$(PKG_NAME)_$(PKG_VER)_src
+       DIR_APP = /usr/src/%{name}_%{version}_src
 
-define STAGE_BUILD
-       cd $(DIR_APP) && \
+       build
                LINUX_BASE=/proc \
                LSOF_VSTR="2.6.16" \
-               ./Configure linux -n
-       cd $(DIR_APP) && make DEBUG="$(CFLAGS)" $(PARALLELISMFLAGS)
-endef
-
-define STAGE_INSTALL
-       -mkdir -pv $(BUILDROOT)/usr/sbin
-       cd $(DIR_APP) && install -m 755 lsof $(BUILDROOT)/usr/sbin
-       -mkdir -pv $(BUILDROOT)/usr/share/man/man8
-       cd $(DIR_APP) && cp -vf lsof.8 $(BUILDROOT)/usr/share/man/man8
-endef
+                       ./Configure linux -n
+               make DEBUG="%{CFLAGS}" %{PARALLELISMFLAGS}
+       end
+
+       install
+               mkdir -pv %{BUILDROOT}/usr/sbin
+               install -m 755 lsof %{BUILDROOT}/usr/sbin
+               mkdir -pv %{BUILDROOT}/usr/share/man/man8
+               cp -vf lsof.8 %{BUILDROOT}/usr/share/man/man8
+       end
+end
+
+packages
+       package %{name}
+       end
+end