]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - pkgs/dhcp/dhcp.nm
Change file layout of the makefiles.
[ipfire-3.x.git] / pkgs / dhcp / dhcp.nm
index c209da7d29c1687091235e18bc535e2771dfcc48..643d35bc92f00ed10f79a1a4385f90e1c08b2d03 100644 (file)
@@ -1,70 +1,55 @@
 ###############################################################################
-#                                                                             #
-# 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       = dhcp
+version    = 4.2.1-P1
+release    = 1
 
-PKG_NAME       = dhcp
-PKG_VER        = 4.2.1
-PKG_REL        = 1
+groups     = Networking/Daemons
+url        = http://isc.org/products/DHCP/
+license    = ISC
+summary    = Dynamic host configuration protocol software.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Networking/Daemons
-PKG_URL        = http://isc.org/products/DHCP/
-PKG_LICENSE    = ISC
-PKG_SUMMARY    = Dynamic host configuration protocol software.
-
-define PKG_DESCRIPTION
+description
        DHCP (Dynamic Host Configuration Protocol) is a protocol which allows \
        individual devices on an IP network to get their own network \
        configuration information (IP address, subnetmask, broadcast address, \
        etc.) from a DHCP server. The overall purpose of DHCP is to make it \
        easier to administer a large network.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-CONFIGURE_OPTIONS += \
-       --sysconfdir=/etc \
-       --with-srv-lease-file=/var/lib/dhcpd/dhcpd.leases \
-       --with-cli-lease-file=/var/lib/dhclient/dhclient.leases \
-       --with-srv-pid-file=/var/run/dhcpd.pid \
-       --with-cli-pid-file=/var/run/dhclient.pid \
-       --with-relay-pid-file=/var/run/dhcrelay.pid
-
-define STAGE_INSTALL_CMDS
-       rm -vf $(BUILDROOT)/etc/dhclient.conf
-
-       # Move the client to /sbin, create dirs
-       # and remove the default config.
-       -mkdir -pv $(BUILDROOT)/sbin
-       mv -v $(BUILDROOT)/usr/sbin/dhclient $(BUILDROOT)/sbin/dhclient
-
-       install -v -m 755 $(DIR_SOURCE)/dhclient-script \
-               $(BUILDROOT)/sbin/dhclient-script
-       -mkdir -pv $(BUILDROOT)/var/lib/dhclient
-
-       # Remove header files.
-       # There is nothing that makes use out of them.
-       rm -rfv $(BUILDROOT)/usr/include
-endef
+end
+
+source_dl  =
+
+build
+       configure_options += \
+               --sysconfdir=/etc \
+               --with-srv-lease-file=/var/lib/dhcpd/dhcpd.leases \
+               --with-cli-lease-file=/var/lib/dhclient/dhclient.leases \
+               --with-srv-pid-file=/var/run/dhcpd.pid \
+               --with-cli-pid-file=/var/run/dhclient.pid \
+               --with-relay-pid-file=/var/run/dhcrelay.pid
+
+       install_cmds
+               rm -vf %{BUILDROOT}/etc/dhclient.conf
+
+               # Move the client to /sbin, create dirs
+               # and remove the default config.
+               mkdir -pv %{BUILDROOT}/sbin
+               mv -v %{BUILDROOT}/usr/sbin/dhclient %{BUILDROOT}/sbin/dhclient
+
+               install -v -m 755 %{DIR_SOURCE}/dhclient-script \
+                       %{BUILDROOT}/sbin/dhclient-script
+               mkdir -pv %{BUILDROOT}/var/lib/dhclient
+
+               # Remove header files.
+               # There is nothing that makes use out of them.
+               rm -rfv %{BUILDROOT}/usr/include
+       end
+end
+
+packages
+       package %{name}
+       end
+end