]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blobdiff - pkgs/pam/pam.nm
Change file layout of the makefiles.
[people/arne_f/ipfire-3.x.git] / pkgs / pam / pam.nm
index 45f88c73b7bad0d9c97ac7eabc69e2c4170a668a..a883768322f1c84b21045b431197aafbe91e7e4c 100644 (file)
@@ -1,74 +1,71 @@
 ###############################################################################
-#                                                                             #
-# 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       = pam
+version    = 1.1.0
+release    = 2
+thisapp    = Linux-PAM-%{version}
 
-PKG_NAME       = Linux-PAM
-PKG_VER        = 1.1.0
-PKG_REL        = 2
+groups     = System/Base
+url        = http://www.us.kernel.org/pub/linux/libs/pam/index.html
+license    = BSD and GPLv2+ and BSD with advertising
+summary    = An extensible library which provides authentication for applications.
 
-PKG_MAINTAINER =
-PKG_GROUPS     = System/Base
-PKG_URL        = http://www.us.kernel.org/pub/linux/libs/pam/index.html
-PKG_LICENSE    = BSD and GPLv2+ and BSD with advertising
-PKG_SUMMARY    = An extensible library which provides authentication for applications.
-
-PKG_BUILD_DEPS+= audit-devel bison cracklib-devel flex libselinux-devel
-PKG_DEPS-pam  += pam_ldap
-
-define PKG_DESCRIPTION
-       PAM (Pluggable Authentication Modules) is a system security tool that \
-       allows system administrators to set authentication policy without \
+description
+       PAM (Pluggable Authentication Modules) is a system security tool that
+       allows system administrators to set authentication policy without
        having to recompile programs that handle authentication.
-endef
+end
+
+source_dl  =
+sources    = %{thisapp}.tar.bz2
 
-PKG_TARBALL    = $(THISAPP).tar.bz2
+build
+       requires
+               audit-devel
+               bison
+               cracklib-devel
+               flex
+               libselinux-devel
+       end
 
-PKG_PACKAGES  += $(PKG_NAME_REAL)-devel
+       configure_options += \
+               --libdir=/lib \
+               --sbindir=/lib/security \
+               --enable-securedir=/lib/security \
+               --docdir=/usr/share/doc/Linux-PAM-%{version} \
+               --enable-read-both-confs
 
-CONFIGURE_OPTIONS += \
-       --libdir=/lib \
-       --sbindir=/lib/security \
-        --enable-securedir=/lib/security \
-        --docdir=/usr/share/doc/Linux-PAM-$(PKG_VER) \
-        --enable-read-both-confs
+       install_cmds
+               mkdir -pv %{BUILDROOT}/sbin
+               chmod -v 4755 %{BUILDROOT}/lib/security/unix_chkpwd
+               mv -v %{BUILDROOT}/lib/security/pam_tally %{BUILDROOT}/sbin
 
-define STAGE_INSTALL_CMDS
-       -mkdir -pv $(BUILDROOT)/sbin
-       chmod -v 4755 $(BUILDROOT)/lib/security/unix_chkpwd
-       mv -v $(BUILDROOT)/lib/security/pam_tally $(BUILDROOT)/sbin
+               mkdir -pv %{BUILDROOT}/usr/lib
+               for LINK in libpam{,c,_misc}.so; do \
+                       ln -v -sf ../../lib/$(readlink %{BUILDROOT}/lib/${LINK}) \
+                               %{BUILDROOT}/usr/lib/${LINK} && \
+                       rm -v %{BUILDROOT}/lib/${LINK}; \
+               done
 
-       -mkdir -pv $(BUILDROOT)/usr/lib
-       for LINK in libpam{,c,_misc}.so; do \
-               ln -v -sf ../../lib/$$(readlink $(BUILDROOT)/lib/$${LINK}) \
-                       $(BUILDROOT)/usr/lib/$${LINK} && \
-               rm -v $(BUILDROOT)/lib/$${LINK}; \
-       done
+               #useradd -D -b /home
+               #sed -i 's/yes/no/' %{BUILDROOT}/etc/default/useradd
+               mkdir -pv %{BUILDROOT}/etc/security
+               install -v -m644 %{DIR_SOURCE}/pam_env.conf %{BUILDROOT}/etc/security/pam_env.conf
+               cp -vf %{DIR_SOURCE}/{login.defs,securetty} %{BUILDROOT}/etc
+       end
+end
 
-       #useradd -D -b /home
-       #sed -i 's/yes/no/' $(BUILDROOT)/etc/default/useradd
-       -mkdir -pv $(BUILDROOT)/etc/security
-       install -v -m644 $(DIR_SOURCE)/pam_env.conf $(BUILDROOT)/etc/security/pam_env.conf
-       cp -vf $(DIR_SOURCE)/{login.defs,securetty} $(BUILDROOT)/etc
-endef
+packages
+       package %{name}
+               requires
+                       pam_ldap
+               end
+       end
+       
+       package %{name}-devel
+               template DEVEL
+       end
+end