]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - pkgs/pcapy/pcapy.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / pcapy / pcapy.nm
index f0cf4910d69955cae76d7c9d1a8b304aba2b71b1..16b72f3aa65066d57ecfee8b48bf5161575c3d20 100644 (file)
@@ -1,55 +1,43 @@
 ###############################################################################
-#                                                                             #
-# 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       = pcapy
+version    = 0.10.5
+release    = 1
 
-PKG_NAME       = pcapy
-PKG_VER        = 0.10.5
-PKG_REL        = 0
+groups     = Development/Languages
+url        = http://oss.coresecurity.com/projects/pcapy.html
+license    = ASL 1.1
+summary    = A Python interface to libpcap.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Development/Languages
-PKG_URL        = http://oss.coresecurity.com/projects/pcapy.html
-PKG_LICENSE    = ASL 1.1
-PKG_SUMMARY    = A Python interface to libpcap.
+description
+       Pcapy is a Python extension module that interfaces with the libpcap
+       packet capture library. Pcapy enables python scripts to capture packets
+       on the network. Pcapy is highly effective when used in conjunction with
+       a packet-handling package such as Impacket, which is a collection of
+       Python classes for constructing and dissecting network packets.
+end
 
-PKG_BUILD_DEPS+= gcc-c++ libpcap-devel python-devel
+source_dl  =
 
-define PKG_DESCRIPTION
-       Pcapy is a Python extension module that interfaces with the libpcap \
-       packet capture library. Pcapy enables python scripts to capture packets \
-       on the network. Pcapy is highly effective when used in conjunction with \
-       a packet-handling package such as Impacket, which is a collection of \
-       Python classes for constructing and dissecting network packets.
-endef
+build
+       requires
+               gcc-c++
+               libpcap-devel
+               python-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+       build
+               python setup.py build
+       end
 
-define STAGE_BUILD
-       cd $(DIR_APP) && python setup.py build
-endef
+       install
+               python setup.py install -O1 --skip-build --root %{BUILDROOT}
+       end
+end
 
-define STAGE_INSTALL
-       cd $(DIR_APP) && python setup.py install -O1 --skip-build --root $(BUILDROOT)
-endef
+packages
+       package %{name}
+end