]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - pkgs/libcap/libcap.nm
Change file layout of the makefiles.
[people/ms/ipfire-3.x.git] / pkgs / libcap / libcap.nm
index b9b5a3dad27b96c5092531bc95afbf36c5aa9e95..5b5f1ed5bae03492bb6b901c7aa2671aa084d8e8 100644 (file)
@@ -1,64 +1,53 @@
 ###############################################################################
-#                                                                             #
-# 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       = libcap
+version    = 2.19
+release    = 1
 
-PKG_NAME       = libcap
-PKG_VER        = 2.19
-PKG_REL        = 1
+groups     = System/Libraries
+url        = http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
+license    = LGPL2+
+summary    = Library for getting and setting POSIX.1e capabilities.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Libraries
-PKG_URL        = http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
-PKG_LICENSE    = LGPL2+
-PKG_SUMMARY    = Library for getting and setting POSIX.1e capabilities.
-
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
-
-define PKG_DESCRIPTION
+description
        libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) \
        draft 15 capabilities.
-endef
-
-PKG_BUILD_DEPS+= libattr-devel pam-devel perl /bin/ping
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-define STAGE_BUILD
-       cd $(DIR_APP) && make DYNAMIC=yes LIBATTR=yes
-endef
-
-define STAGE_TEST
-       cd $(DIR_APP)/progs && ./quicktest.sh
-endef
-
-define STAGE_INSTALL
-       cd $(DIR_APP) && make install DESTDIR=$(BUILDROOT) lib=/lib
-
-       rm -vf $(BUILDROOT)/lib/libcap.so
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       ln -svf ../../lib/libcap.so.2 $(BUILDROOT)/usr/lib/libcap.so
-
-       chmod 755 $(BUILDROOT)/lib/libcap.so.$(PKG_VER)
-endef
+end
+
+source_dl  = %{url}
+sources    = %{thisapp}.tar.gz
+
+build
+       requires
+               libattr-devel
+               pam-devel
+               perl
+               /bin/ping
+       end
+
+       build
+               make DYNAMIC=yes LIBATTR=yes
+       end
+
+       install
+               make install DESTDIR=%{BUILDROOT} lib=/lib
+
+               rm -vf %{BUILDROOT}/lib/libcap.so
+               mkdir -pv %{BUILDROOT}/usr/lib
+               ln -svf ../../lib/libcap.so.2 %{BUILDROOT}/usr/lib/libcap.so
+
+               chmod 755 %{BUILDROOT}/lib/libcap.so.%{version}
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end