OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Ralf S. Engelschall
  Root:   /v/openpkg/cvs                   Email:  r...@openpkg.org
  Module: openpkg-src                      Date:   09-Apr-2009 14:52:35
  Branch: HEAD                             Handle: 2009040913523500

  Added files:
    openpkg-src/ldapuseradd ldapuseradd.patch ldapuseradd.spec

  Log:
    new package: ldapuseradd 0.9 (LDAP User Management Tools)

  Summary:
    Revision    Changes     Path
    1.1         +147 -0     openpkg-src/ldapuseradd/ldapuseradd.patch
    1.1         +97 -0      openpkg-src/ldapuseradd/ldapuseradd.spec
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/ldapuseradd/ldapuseradd.patch
  ============================================================================
  $ cvs diff -u -r0 -r1.1 ldapuseradd.patch
  --- /dev/null 2009-04-09 14:52:35 +0200
  +++ ldapuseradd.patch 2009-04-09 14:52:35 +0200
  @@ -0,0 +1,147 @@
  +Index: man5/Makefile.in
  +--- man5/Makefile.in.orig    2009-03-01 11:11:40 +0100
  ++++ man5/Makefile.in 2009-04-09 14:44:58 +0200
  +@@ -2,6 +2,7 @@
  + groups.ldap.5 groups.ldap.cat5\
  + ldapuseradd.conf.5 ldapuseradd.conf.cat5\
  + users.ldap.5 users.ldap.cat5
  ++man_d...@man_dir@
  + 
  + all: $(FILES)
  + 
  +@@ -9,10 +10,10 @@
  +     -rm *.5 *.cat5
  + 
  + install:
  +-    -mkdir -p @MAN_DIR@/man5
  +-    -mkdir -p @MAN_DIR@/cat5
  +-    cp *.5 @MAN_DIR@/man5
  +-    cp *.cat5 @MAN_DIR@/cat5
  ++    -mkdir -p $(MAN_DIR)/man5
  ++    -mkdir -p $(MAN_DIR)/cat5
  ++    cp *.5 $(MAN_DIR)/man5
  ++    cp *.cat5 $(MAN_DIR)/cat5
  + 
  + %.5: %.5.xml
  +     xmltoman $^ > $@
  +Index: man8/Makefile.in
  +--- man8/Makefile.in.orig    2009-03-01 11:11:40 +0100
  ++++ man8/Makefile.in 2009-04-09 14:44:58 +0200
  +@@ -5,6 +5,7 @@
  + ldapuseradd.8 ldapuseradd.cat8 \
  + ldapuserdel.8 ldapuserdel.cat8 \
  + ldapusermod.8 ldapusermod.cat8
  ++man_d...@man_dir@
  + 
  + all: $(FILES)
  + 
  +@@ -12,10 +13,10 @@
  +     -rm *.8 *.cat8
  + 
  + install:
  +-    -mkdir -p @MAN_DIR@/man8
  +-    -mkdir -p @MAN_DIR@/cat8
  +-    cp *.8 @MAN_DIR@/man8
  +-    cp *.cat8 @MAN_DIR@/cat8
  ++    -mkdir -p $(MAN_DIR)/man8
  ++    -mkdir -p $(MAN_DIR)/cat8
  ++    cp *.8 $(MAN_DIR)/man8
  ++    cp *.cat8 $(MAN_DIR)/cat8
  + 
  + %.8: %.8.xml
  +     xmltoman $^ > $@
  +Index: src/Makefile.in
  +--- src/Makefile.in.orig     2009-03-01 11:11:38 +0100
  ++++ src/Makefile.in  2009-04-09 14:46:12 +0200
  +@@ -12,7 +12,7 @@
  + LDAP_OBJS=$(patsubst %.c,%.o,$(wildcard ldap/*.c))
  + API_OBJS=$(patsubst %.c,%.o,$(wildcard api/*.c))
  + c...@cc@
  +-CFLAGS=-Wall -I.. -I. -Iapi -Ildap @CFLAGS@
  ++CFLAGS=-Wall -I.. -I. -Iapi -Ildap @CFLAGS@ @CPPFLAGS@
  + #TODO: --export-dynamic on non-GNU ld.
  + LDFLAGS=-Wl,-s -Wl,--export-dynamic
  + bin_d...@bin_dir@
  +@@ -29,13 +29,13 @@
  + install:
  +     -install -d $(BIN_DIR)
  +     install ldapuseradd $(BIN_DIR)
  +-    -ln -s ldapuseradd $(BIN_DIR)/ldapusermod
  +-    -ln -s ldapuseradd $(BIN_DIR)/ldapuserdel
  +-    -ln -s ldapuseradd $(BIN_DIR)/ldapgroupadd
  +-    -ln -s ldapuseradd $(BIN_DIR)/ldapgroupmod
  +-    -ln -s ldapuseradd $(BIN_DIR)/ldapgroupdel
  ++    -ln $(BIN_DIR)/ldapuseradd $(BIN_DIR)/ldapusermod
  ++    -ln $(BIN_DIR)/ldapuseradd $(BIN_DIR)/ldapuserdel
  ++    -ln $(BIN_DIR)/ldapuseradd $(BIN_DIR)/ldapgroupadd
  ++    -ln $(BIN_DIR)/ldapuseradd $(BIN_DIR)/ldapgroupmod
  ++    -ln $(BIN_DIR)/ldapuseradd $(BIN_DIR)/ldapgroupdel
  +     cd hooks; make install
  + 
  + ldapuseradd: $(OBJS) $(LDAP_OBJS) $(API_OBJS)
  +-    $(CC) -o ldapuseradd $(OBJS) $(LDAP_OBJS) $(API_OBJS) $(LDFLAGS) -lldap
  ++    $(CC) -o ldapuseradd $(OBJS) $(LDAP_OBJS) $(API_OBJS) $(LDFLAGS) -lldap 
-llber -lssl -lcrypto
  + 
  +Index: src/getopt.c
  +--- src/getopt.c.orig        2009-03-01 11:11:38 +0100
  ++++ src/getopt.c     2009-04-09 14:44:58 +0200
  +@@ -39,6 +39,7 @@
  + #endif
  + 
  + #include <stdio.h>
  ++#include <string.h>
  + 
  + /* Comment out all this code if we are using the GNU C Library, and are not
  +    actually compiling the library itself.  This code is part of the GNU C
  +@@ -75,17 +76,7 @@
  + # endif
  + #endif
  + 
  +-#ifdef _LIBC
  +-# include <libintl.h>
  +-#else
  +-/* This is for other GNU distributions with internationalized messages.  */
  +-# include "gettext.h"
  +-#endif
  +-#define _(msgid) gettext (msgid)
  +-
  +-#if defined _LIBC && defined USE_IN_LIBIO
  +-# include <wchar.h>
  +-#endif
  ++#define _(msgid) msgid
  + 
  + #ifndef attribute_hidden
  + # define attribute_hidden
  +Index: src/hooks/Makefile.in
  +--- src/hooks/Makefile.in.orig       2009-03-01 11:11:39 +0100
  ++++ src/hooks/Makefile.in    2009-04-09 14:44:58 +0200
  +@@ -1,5 +1,5 @@
  + SOBJS=hook_home.so hook_mail.so hook_sql.so hook_web.so
  +-CFLAGS=-Wunused -I.. -I../.. -I../api -I../ldap
  ++CFLAGS=-Wunused -I.. -I../.. -I../api -I../ldap @CFLAGS@ @CPPFLAGS@
  + c...@cc@
  + lib_d...@lib_dir@
  + 
  +Index: src/ldapuseradd.c
  +--- src/ldapuseradd.c.orig   2009-03-01 11:11:39 +0100
  ++++ src/ldapuseradd.c        2009-04-09 14:44:58 +0200
  +@@ -16,7 +16,9 @@
  +  */
  + 
  + #include "ldapuseradd.h"
  ++#ifdef __linux__
  + #include <sys/prctl.h>
  ++#endif
  + 
  + /**
  +  * catch_int: Here is the signal handler (to catch ctrl-c)
  +@@ -37,7 +39,9 @@
  +     struct user_account current_account;
  +     struct user_account newmod_account;
  + 
  ++#ifdef __linux__
  +     prctl(PR_SET_DUMPABLE, 1);
  ++#endif
  + 
  +     ua1->current_account = &current_account;
  +     ua1->newmod_account = &newmod_account;
  @@ .
  patch -p0 <<'@@ .'
  Index: openpkg-src/ldapuseradd/ldapuseradd.spec
  ============================================================================
  $ cvs diff -u -r0 -r1.1 ldapuseradd.spec
  --- /dev/null 2009-04-09 14:52:35 +0200
  +++ ldapuseradd.spec  2009-04-09 14:52:35 +0200
  @@ -0,0 +1,97 @@
  +##
  +##  ldapuseradd.spec -- OpenPKG RPM Package Specification
  +##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  +##
  +##  Permission to use, copy, modify, and distribute this software for
  +##  any purpose with or without fee is hereby granted, provided that
  +##  the above copyright notice and this permission notice appear in all
  +##  copies.
  +##
  +##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  +##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  +##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  +##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  +##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  +##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  +##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  +##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  +##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  +##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  +##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  +##  SUCH DAMAGE.
  +##
  +
  +#   package information
  +Name:         ldapuseradd
  +Summary:      LDAP User Management Tools
  +URL:          http://www.unixdev.net/projects/ldapuseradd
  +Vendor:       Greg Schenzel
  +Packager:     OpenPKG Foundation e.V.
  +Distribution: OpenPKG Community
  +Class:        EVAL
  +Group:        LDAP
  +License:      GPL
  +Version:      0.9
  +Release:      20090409
  +
  +#   list of sources
  +Source0:      
ftp://ftp.unixdev.net/pub/unixdev/ldapuseradd/%{version}/ldapuseradd-%{version}.tar.bz2
  +Patch0:       ldapuseradd.patch
  +
  +#   build information
  +Prefix:       %{l_prefix}
  +BuildRoot:    %{l_buildroot}
  +BuildPreReq:  OpenPKG, openpkg >= 20060823
  +PreReq:       OpenPKG, openpkg >= 20060823
  +BuildPreReq:  openldap
  +PreReq:       openldap
  +AutoReq:      no
  +AutoReqProv:  no
  +
  +%description
  +    ldapuseradd is a set of utilities that aid in the management
  +    and deployment of user accounts with support for plugins to
  +    manage requirements. The LDAP user management toolset uses a
  +    highly configurable user group profile system to distinguish
  +    targeted services. It is like an LDAP-based useradd/mod/del drop-in
  +    replacement with modular features.
  +
  +%track
  +    prog ldapuseradd = {
  +        version   = %{version}
  +        url       = http://www.unixdev.net/projects/ldapuseradd
  +        regex     = ldapuseradd-(__VER__)\.tar\.gz
  +    }
  +
  +%prep
  +    %setup -q
  +    %patch -p0
  +
  +%build
  +    CC="%{l_cc}" \
  +    CFLAGS="%{l_cflags -O}" \
  +    CPPFLAGS="%{l_cppflags}" \
  +    LDFLAGS="%{l_ldflags}" \
  +    ./configure \
  +        --prefix=%{l_prefix}
  +    %{l_make} %{l_mflags -O}
  +
  +%install
  +    rm -rf $RPM_BUILD_ROOT
  +    %{l_make} %{l_mflags} install \
  +        BIN_DIR=$RPM_BUILD_ROOT%{l_prefix}/bin \
  +        MAN_DIR=$RPM_BUILD_ROOT%{l_prefix}/man \
  +        LIB_DIR=$RPM_BUILD_ROOT%{l_prefix}/lib/ldapuseradd \
  +        CONFIG_DIR=$RPM_BUILD_ROOT%{l_prefix}/etc/ldapuseradd
  +    rm -rf $RPM_BUILD_ROOT%{l_prefix}/man/cat*
  +    rm -f $RPM_BUILD_ROOT%{l_prefix}/etc/ldapuseradd/ldapuseradd-large.conf
  +    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  +    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  +        %{l_files_std} \
  +        '%config %{l_prefix}/etc/ldapuseradd/*'
  +
  +%files -f files
  +
  +%clean
  +    rm -rf $RPM_BUILD_ROOT
  +
  @@ .
______________________________________________________________________
OpenPKG                                             http://openpkg.org
CVS Repository Commit List                     openpkg-cvs@openpkg.org

Reply via email to