###############################################################################
-# #
-# 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 = netplug
+version = 1.2.9.1
+release = 1
-PKG_NAME = netplug
-PKG_VER = 1.2.9.1
-PKG_REL = 1
-
-PKG_MAINTAINER =
-PKG_GROUPS = Networking/Tools
-PKG_URL = http://www.red-bean.com/~bos/
-PKG_LICENSE = GPLv2
-PKG_SUMMARY = A daemon that manages network interfaces in response to \
+groups = Networking/Tools
+url = http://www.red-bean.com/~bos/
+license = GPLv2
+summary = A daemon that manages network interfaces in response to \
network cables being plugged in and out.
-define PKG_DESCRIPTION
- Netplug is a Linux daemon that manages network interfaces in response \
- to network cables being plugged in and out. If you're familiar with \
- Windows XP, which just does the Right Thing when you plug an ethernet \
+description
+ Netplug is a Linux daemon that manages network interfaces in response
+ to network cables being plugged in and out. If you're familiar with
+ Windows XP, which just does the Right Thing when you plug an ethernet
cable into a laptop, netplug will need no further explanation.
-endef
+end
+
+source_dl =
+sources = %{thisapp}.tar.bz2
-PKG_TARBALL = $(THISAPP).tar.bz2
+build
+ prepare_cmds
+ # Remove debugging flags from CFLAGS.
+ sed -i Makefile -e "s/-ggdb3 -O3//g"
+ end
-define STAGE_PREPARE_CMDS
- # Remove debugging flags from CFLAGS.
- cd $(DIR_APP) && sed -i Makefile \
- -e "s/-ggdb3 -O3//g"
-endef
+ build
+ make CC="gcc"
+ end
-define STAGE_BUILD
- cd $(DIR_APP) && make CC="gcc"
-endef
+ install_cmds
+ rm -rfv %{BUILDROOT}/etc/rc.d
+ end
+end
-define STAGE_INSTALL_CMDS
- rm -rfv $(BUILDROOT)/etc/rc.d
-endef
+packages
+ package %{name}
+end