]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blobdiff - pkgs/parted/parted.nm
Change file layout of the makefiles.
[people/stevee/ipfire-3.x.git] / pkgs / parted / parted.nm
index 72543cb60c3d7d820ef4c0fa33a308106c35ab9e..d419fc9d04cc280bfb83f9f58ac9d77192506e75 100644 (file)
@@ -1,61 +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
-
-PKG_NAME       = parted
-PKG_VER        = 2.1
-PKG_REL        = 2
-
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/System
-PKG_URL        = http://www.gnu.org/software/parted
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = The GNU disk partition manipulation program.
+name       = parted
+version    = 2.1
+release    = 2
 
-PKG_BUILD_DEPS+= libdevmapper-devel libselinux-devel libsepol-devel \
-       libuuid-devel ncurses-devel pkg-config readline-devel
+groups     = Applications/System
+url        = http://www.gnu.org/software/parted
+license    = GPLv3+
+summary    = The GNU disk partition manipulation program.
 
-define PKG_DESCRIPTION
-       The GNU Parted program allows you to create, destroy, resize, move, \
-       and copy hard disk partitions. Parted can be used for creating space \
-       for new operating systems, reorganizing disk usage, and copying data \
+description
+       The GNU Parted program allows you to create, destroy, resize, move,
+       and copy hard disk partitions. Parted can be used for creating space
+       for new operating systems, reorganizing disk usage, and copying data
        to new hard disks.
-endef
-
-PKG_TARBALL    = $(THISAPP).tar.gz
-
-PKG_PACKAGES  += $(PKG_NAME)-devel
-
-CONFIGURE_OPTIONS += \
-       --libdir=/lib \
-       --enable-selinux
-
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       mv -v $(BUILDROOT)/lib/pkgconfig $(BUILDROOT)/usr/lib/
-       rm -rf $(BUILDROOT)/lib/libparted{,-2.1}.so
-       ln -svf ../../lib/libparted-$(PKG_VER).so.0 $(BUILDROOT)/usr/lib/libparted-$(PKG_VER).so
-       ln -svf libparted-$(PKG_VER).so $(BUILDROOT)/usr/lib/libparted.so
-endef
+end
+
+source_dl  =
+
+build
+       requires
+               libdevmapper-devel
+               libselinux-devel
+               libsepol-devel
+               libuuid-devel
+               ncurses-devel
+               pkg-config
+               readline-devel
+       end
+
+       configure_options += \
+               --libdir=/lib \
+               --enable-selinux
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}/usr/lib
+               mv -v %{BUILDROOT}/lib/pkgconfig %{BUILDROOT}/usr/lib/
+               rm -rf %{BUILDROOT}/lib/libparted{,-2.1}.so
+               ln -svf ../../lib/libparted-%{version}.so.0 %{BUILDROOT}/usr/lib/libparted-%{version}.so
+               ln -svf libparted-%{version}.so %{BUILDROOT}/usr/lib/libparted.so
+       end
+end
+
+packages
+       package %{name}
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end