]> git.ipfire.org Git - ipfire-3.x.git/blobdiff - pkgs/samba/samba.nm
Change file layout of the makefiles.
[ipfire-3.x.git] / pkgs / samba / samba.nm
index bfcc2bfe7b377af0672b60ebc9bd4973a348969c..c7591cd644a742aa954eace22c398e5ccabab512 100644 (file)
@@ -1,93 +1,97 @@
 ###############################################################################
-#                                                                             #
-# 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       = samba
+version    = 3.5.11
+release    = 1
 
-PKG_NAME       = samba
-PKG_VER        = 3.5.11
-PKG_REL        = 1
+maintainer = Christian Schmidt <christian.schmidt@ipfire.org>
+groups     = Networking/Daemons
+url        = http://www.samba.org/
+license    = GPLv3+ and LGPLv3+
+summary    = Server and Client software to interoperate with Windows machines.
 
-PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
-PKG_GROUPS     = Networking/Daemons
-PKG_URL        = http://www.samba.org/
-PKG_LICENSE    = GPLv3+ and LGPLv3+
-PKG_SUMMARY    = Server and Client software to interoperate with Windows machines.
-
-PKG_BUILD_DEPS+= autoconf automake avahi-devel cups-devel ncurses-devel \
-       libcap-devel openldap-devel openssl-devel pam-devel popt-devel \
-       readline-devel which
-
-define PKG_DESCRIPTION
-       Samba is the suite of programs by which a lot of PC-related machines \
-       share files, printers, and other information (such as lists of \
-       available files and printers). The Windows NT, OS/2, and Linux \
-       operating systems support this natively, and add-on packages can \
-       enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS, \
-       and more. This package provides an SMB/CIFS server that can be used to \
-       provide network services to SMB/CIFS clients. \
-       Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT \
+description
+       Samba is the suite of programs by which a lot of PC-related machines
+       share files, printers, and other information (such as lists of
+       available files and printers). The Windows NT, OS/2, and Linux
+       operating systems support this natively, and add-on packages can
+       enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS,
+       and more. This package provides an SMB/CIFS server that can be used to
+       provide network services to SMB/CIFS clients.
+       Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT
        need the NetBEUI (Microsoft Raw NetBIOS frame) protocol.
-endef
+end
+
+source_dl  = http://www.samba.org/samba/ftp/stable/
 
-PKG_TARBALL    = $(THISAPP).tar.gz
+CFLAGS    += \
+       -D_FILE_OFFSET_BITS=64 \
+       -D_GNU_SOURCE -DLDAP_DEPRECATED
 
-PKG_PACKAGES  += $(PKG_NAME)-devel $(PKG_NAME)-libs
+build
+       requires
+               autoconf
+               automake
+               avahi-devel
+               cups-devel
+               ncurses-devel
+               libcap-devel
+               openldap-devel
+               openssl-devel
+               pam-devel
+               popt-devel
+               readline-devel
+               which
+       end
 
-CFLAGS    += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
+       DIR_APP = %{DIR_SRC}/%{thisapp}/source3
 
-define STAGE_BUILD
-       cd $(DIR_APP)/source3 && \
-               ./configure \
-                       --prefix=/usr \
-                       --localstatedir=/var \
-                       --with-lockdir=/var/lib/samba \
-                       --with-piddir=/var/run \
-                       --with-mandir=/usr/share/man \
-                       --with-privatedir=/var/lib/samba/private \
-                       --with-logfilebase=/var/log/samba \
-                       --with-modulesdir=/usr/lib/samba \
-                       --with-configdir=/etc/samba \
-                       --with-pammodulesdir=/lib/security \
-                       --with-swatdir=/usr/share/swat \
-                       --with-automount \
-                       --with-libsmbclient \
-                       --with-libsmbsharemodes \
-                       --with-pam \
-                       --with-pam_smbpass \
-                       --with-quotas \
-                       --with-sendfile-support \
-                       --with-syslog \
-                       --with-utmp \
-                       --with-winbind \
-                       --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
+       configure_options += \
+               --prefix=/usr \
+               --localstatedir=/var \
+               --with-lockdir=/var/lib/samba \
+               --with-piddir=/var/run \
+               --with-mandir=/usr/share/man \
+               --with-privatedir=/var/lib/samba/private \
+               --with-logfilebase=/var/log/samba \
+               --with-modulesdir=/usr/lib/samba \
+               --with-configdir=/etc/samba \
+               --with-pammodulesdir=/lib/security \
+               --with-swatdir=/usr/share/swat \
+               --with-automount \
+               --with-libsmbclient \
+               --with-libsmbsharemodes \
+               --with-pam \
+               --with-pam_smbpass \
+               --with-quotas \
+               --with-sendfile-support \
+               --with-syslog \
+               --with-utmp \
+               --with-winbind \
+               --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
 
-       cd $(DIR_APP)/source3 && make pch all modules $(PARALLELISMFLAGS)
-endef
+       make_build_targets += \
+               pch \
+               all modules
 
-define STAGE_INSTALL
-       cd $(DIR_APP)/source3 && make install DESTDIR=$(BUILDROOT)
+       install_cmds
+               mkdir -pv %{BUILDROOT}/etc/samba
+               echo "127.0.0.1 localhost" > %{BUILDROOT}/etc/samba/lmhosts
+       end
+end
 
-       -mkdir -pv $(BUILDROOT)/etc/samba
-       echo "127.0.0.1 localhost" > $(BUILDROOT)/etc/samba/lmhosts
-endef
+packages
+       package %{name}
+       end
+       
+       package %{name}-libs
+               template LIBS
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end