X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=pkgs%2Flsof%2Flsof.nm;h=527e45aa47b60846f3a760bff3033f11e0f8f9fb;hb=802ea3af55e3167b6574e23b230cdbf0ed2ae0db;hp=c8f01c683cb6b304cef5b36750fc665c7089fdb3;hpb=f0b55c28746b56de89d7a10a4ad0ad2a4939baac;p=people%2Farne_f%2Fipfire-3.x.git
diff --git a/pkgs/lsof/lsof.nm b/pkgs/lsof/lsof.nm
index c8f01c683..527e45aa4 100644
--- a/pkgs/lsof/lsof.nm
+++ b/pkgs/lsof/lsof.nm
@@ -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 . #
-# #
+# IPFire.org - An Open Source Firewall Solution #
+# Copyright (C) - IPFire Development Team #
###############################################################################
-###############################################################################
-# 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