]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blobdiff - pkgs/rsync/rsync.nm
Change file layout of the makefiles.
[people/amarx/ipfire-3.x.git] / pkgs / rsync / rsync.nm
index f2bbfb9d78db94a49357c1c879a7bfcf76ca3611..4cc20d8c45ab3a04b09841a3c860b66a79c6e9b1 100644 (file)
@@ -1,42 +1,18 @@
 ###############################################################################
-#                                                                             #
-# 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       = rsync
-PKG_VER        = 3.0.7
-PKG_REL        = 1
+name       = rsync
+version    = 3.0.7
+release    = 1
 
-PKG_MAINTAINER =
-PKG_GROUPS     = Applications/Internet
-PKG_URL        = http://rsync.samba.org/
-PKG_LICENSE    = GPLv3+
-PKG_SUMMARY    = A program for synchronizing files over a network.
+groups     = Applications/Internet
+url        = http://rsync.samba.org/
+license    = GPLv3+
+summary    = A program for synchronizing files over a network.
 
-PKG_BUILD_DEPS+= autoconf libacl-devel libattr-devel popt-devel
-
-define PKG_DESCRIPTION
+description
        Rsync uses a reliable algorithm to bring remote and host files into
        sync very quickly. Rsync is fast because it just sends the differences
        in the files over the network instead of sending the complete
@@ -44,32 +20,50 @@ define PKG_DESCRIPTION
        just as a more capable replacement for the rcp command. A technical
        report which describes the rsync algorithm is included in this
        package.
-endef
+end
+
+source_dl  = http://rsync.samba.org/ftp/rsync/
+sources    += %{name}-patches-%{version}.tar.gz
+
+build
+       requires
+               autoconf
+               libacl-devel
+               libattr-devel
+               popt-devel
+       end
 
-PKG_TARBALL    = $(THISAPP).tar.gz
-PKG_OBJECTS   += $(PKG_NAME)-patches-$(PKG_VER).tar.gz
+       prepare_cmds
+               # Fix permission issure.
+               cd %{DIR_APP} && chmod -x support/*
 
-define STAGE_PREPARE_CMDS
-       cd $(DIR_SRC) && $(DO_EXTRACT) \
-               $(DIR_DL)/$(PKG_NAME)-patches-$(PKG_VER).tar.gz
+               # Apply upstream patches.
+               patch -Np1 -i patches/acls.diff
+               patch -Np1 -i patches/xattrs.diff
+               patch -Np1 -i patches/copy-devices.diff
 
-       cd $(DIR_APP) && chmod -x support/*
+               # Remove cache.
+               rm -fr autum4te.cache
 
-       cd $(DIR_APP) && patch -Np1 -i patches/acls.diff
-       cd $(DIR_APP) && patch -Np1 -i patches/xattrs.diff
-       cd $(DIR_APP) && patch -Np1 -i patches/copy-devices.diff
+               # Regenerate build environment.
+               autoconf
+               autoheader
+       end
 
-       cd $(DIR_APP) && rm -fr autum4te.cache
-       cd $(DIR_APP) && autoconf
-       cd $(DIR_APP) && autoheader
-endef
+       make_build_targets = proto all
 
-STAGE_BUILD_TARGETS = proto all
+       make_install_targets += \
+               INSTALLCMD="install -p" \
+               INSTALLMAN="install -p"
 
-STAGE_INSTALL_TARGETS += INSTALLCMD="install -p" INSTALLMAN="install -p"
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc/xinetd.d
+               install -p -m 644 %{DIR_SOURCE}/rsync.xinetd \
+                       %{BUILDROOT}/etc/xinetd.d/rsync
+       end
+end
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/etc/xinetd.d
-       install -p -m 644 $(DIR_SOURCE)/rsync.xinetd \
-               $(BUILDROOT)/etc/xinetd.d/rsync
-endef
+packages
+       package %{name}
+       end
+end