summaryrefslogtreecommitdiff
path: root/data/pam
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-04-08 21:42:41 +0000
committerJay Freeman <saurik@saurik.com>2009-04-08 21:42:41 +0000
commit960f0c8bd926f96246a6567ece6f9851a2b22b76 (patch)
treeb23b7c9796b9d2b5f10a0845e872e81f0c997ae1 /data/pam
parent6774b86da56c1713247148e83d44630675828dee (diff)
Upgraded system-cmds to use PAM (for login).
git-svn-id: http://svn.telesphoreo.org/trunk@566 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data/pam')
-rw-r--r--data/pam/_metadata/depends1
-rw-r--r--data/pam/_metadata/description1
-rw-r--r--data/pam/_metadata/license41
l---------data/pam/_metadata/maintainer1
-rw-r--r--data/pam/_metadata/name1
-rwxr-xr-xdata/pam/_metadata/preinst7
-rw-r--r--data/pam/_metadata/priority1
-rw-r--r--data/pam/_metadata/role1
-rw-r--r--data/pam/_metadata/section1
-rw-r--r--data/pam/_metadata/tags1
-rw-r--r--data/pam/_metadata/version1
-rw-r--r--data/pam/ar.diff12
-rw-r--r--data/pam/cc.diff14
-rw-r--r--data/pam/lipo.diff21
-rw-r--r--data/pam/make.diff18
-rw-r--r--data/pam/make.sh28
-rw-r--r--data/pam/pam-32.1.tar.gzbin0 -> 459113 bytes
-rw-r--r--data/pam/uname.diff12
18 files changed, 162 insertions, 0 deletions
diff --git a/data/pam/_metadata/depends b/data/pam/_metadata/depends
new file mode 100644
index 000000000..2659dae3c
--- /dev/null
+++ b/data/pam/_metadata/depends
@@ -0,0 +1 @@
+pam-modules
diff --git a/data/pam/_metadata/description b/data/pam/_metadata/description
new file mode 100644
index 000000000..dc932a230
--- /dev/null
+++ b/data/pam/_metadata/description
@@ -0,0 +1 @@
+pluggable (comples) authentication modules
diff --git a/data/pam/_metadata/license b/data/pam/_metadata/license
new file mode 100644
index 000000000..2f27a2ee0
--- /dev/null
+++ b/data/pam/_metadata/license
@@ -0,0 +1,41 @@
+Unless otherwise *explicitly* stated the following text describes the
+licensed conditions under which the contents of this Linux-PAM release
+may be distributed:
+
+-------------------------------------------------------------------------
+Redistribution and use in source and binary forms of Linux-PAM, with
+or without modification, are permitted provided that the following
+conditions are met:
+
+1. Redistributions of source code must retain any existing copyright
+ notice, and this entire permission notice in its entirety,
+ including the disclaimer of warranties.
+
+2. Redistributions in binary form must reproduce all prior and current
+ copyright notices, this list of conditions, and the following
+ disclaimer in the documentation and/or other materials provided
+ with the distribution.
+
+3. The name of any author may not be used to endorse or promote
+ products derived from this software without their specific prior
+ written permission.
+
+ALTERNATIVELY, this product may be distributed under the terms of the
+GNU General Public License, in which case the provisions of the GNU
+GPL are required INSTEAD OF the above restrictions. (This clause is
+necessary due to a potential conflict between the GNU GPL and the
+restrictions contained in a BSD-style copyright.)
+
+THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS 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 AUTHOR(S) 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.
+-------------------------------------------------------------------------
+
diff --git a/data/pam/_metadata/maintainer b/data/pam/_metadata/maintainer
new file mode 120000
index 000000000..0fa66e077
--- /dev/null
+++ b/data/pam/_metadata/maintainer
@@ -0,0 +1 @@
+../../../people/saurik \ No newline at end of file
diff --git a/data/pam/_metadata/name b/data/pam/_metadata/name
new file mode 100644
index 000000000..c21911ef1
--- /dev/null
+++ b/data/pam/_metadata/name
@@ -0,0 +1 @@
+PAM (Apple)
diff --git a/data/pam/_metadata/preinst b/data/pam/_metadata/preinst
new file mode 100755
index 000000000..498792bf9
--- /dev/null
+++ b/data/pam/_metadata/preinst
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+if [[ $1 == install || $1 == upgrade ]]; then
+ /usr/libexec/cydia/move.sh /usr/lib/pam
+fi
+
+exit 0
diff --git a/data/pam/_metadata/priority b/data/pam/_metadata/priority
new file mode 100644
index 000000000..a6a7b9cd7
--- /dev/null
+++ b/data/pam/_metadata/priority
@@ -0,0 +1 @@
+standard
diff --git a/data/pam/_metadata/role b/data/pam/_metadata/role
new file mode 100644
index 000000000..52b4d7301
--- /dev/null
+++ b/data/pam/_metadata/role
@@ -0,0 +1 @@
+hacker
diff --git a/data/pam/_metadata/section b/data/pam/_metadata/section
new file mode 100644
index 000000000..eb7a34ddd
--- /dev/null
+++ b/data/pam/_metadata/section
@@ -0,0 +1 @@
+Administration
diff --git a/data/pam/_metadata/tags b/data/pam/_metadata/tags
new file mode 100644
index 000000000..a8928cec8
--- /dev/null
+++ b/data/pam/_metadata/tags
@@ -0,0 +1 @@
+purpose::library
diff --git a/data/pam/_metadata/version b/data/pam/_metadata/version
new file mode 100644
index 000000000..3e5ca5321
--- /dev/null
+++ b/data/pam/_metadata/version
@@ -0,0 +1 @@
+32.1
diff --git a/data/pam/ar.diff b/data/pam/ar.diff
new file mode 100644
index 000000000..67d901ff4
--- /dev/null
+++ b/data/pam/ar.diff
@@ -0,0 +1,12 @@
+diff -ru pam-32.1/pam/modules/pammodutil/Makefile pam-32.1+iPhone/pam/modules/pammodutil/Makefile
+--- pam-32.1/pam/modules/pammodutil/Makefile 2009-04-08 08:45:37.000000000 +0000
++++ pam-32.1+iPhone/pam/modules/pammodutil/Makefile 2009-04-08 08:45:52.000000000 +0000
+@@ -37,7 +37,7 @@
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c $< -o $@
+
+ $(LIBSTATIC): $(SLIBOBJECTS)
+- ar cr $@ $(SLIBOBJECTS)
++ $(AR) cr $@ $(SLIBOBJECTS)
+ $(RANLIB) $@
+
+ install:
diff --git a/data/pam/cc.diff b/data/pam/cc.diff
new file mode 100644
index 000000000..df873933a
--- /dev/null
+++ b/data/pam/cc.diff
@@ -0,0 +1,14 @@
+diff -ru pam-32.1/pam/configure.in pam-32.1+iPhone/pam/configure.in
+--- pam-32.1/pam/configure.in 2006-07-11 03:24:07.000000000 +0000
++++ pam-32.1+iPhone/pam/configure.in 2009-04-08 08:23:07.000000000 +0000
+@@ -356,8 +356,8 @@
+ OS_CFLAGS="-no-cpp-precomp"
+ DYNTYPE=dylib
+ LD=ld
+- LD_D='cc -bundle $(CFLAGS)'
+- LD_L='cc -dynamiclib -compatibility_version $(MAJOR_REL).$(MINOR_REL) -current_version $(MAJOR_REL).$(MINOR_REL) $(CFLAGS) -all_load'
++ LD_D='$(CC) -bundle $(CFLAGS)'
++ LD_L='$(CC) -dynamiclib -compatibility_version $(MAJOR_REL).$(MINOR_REL) -current_version $(MAJOR_REL).$(MINOR_REL) $(CFLAGS) -all_load'
+ RANLIB=ranlib
+ STRIP=strip
+ CC_STATIC="-Xlinker -export-dynamic"
diff --git a/data/pam/lipo.diff b/data/pam/lipo.diff
new file mode 100644
index 000000000..770ff50e9
--- /dev/null
+++ b/data/pam/lipo.diff
@@ -0,0 +1,21 @@
+diff -ru pam-32.1/ar.sh pam-32.1+iPhone/ar.sh
+--- pam-32.1/ar.sh 2005-08-18 18:02:08.000000000 +0000
++++ pam-32.1+iPhone/ar.sh 2009-04-08 08:33:50.000000000 +0000
+@@ -47,7 +47,7 @@
+ local archdir="${dir}/${arch}";
+ mkdir -p "${archdir}";
+
+- lipo -thin "${arch}" "${archive}" -o "${archdir}/${name}";
++ "${PKG_TARG}-lipo" -thin "${arch}" "${archive}" -o "${archdir}/${name}";
+
+ ( cd "${archdir}" && ar -xo "./${name}"; );
+
+@@ -62,7 +62,7 @@
+
+ local ofile;
+ for ofile in ${ofiles}; do
+- lipo -create $(find "${dir}" -name "${ofile}" -print) -o "${dir}/${ofile}";
++ "${PKG_TARG}-lipo" -create $(find "${dir}" -name "${ofile}" -print) -o "${dir}/${ofile}";
+ done
+
+ ( cd "${dir}" && ar -cr "${name}" ${ofiles}; );
diff --git a/data/pam/make.diff b/data/pam/make.diff
new file mode 100644
index 000000000..e8bec575c
--- /dev/null
+++ b/data/pam/make.diff
@@ -0,0 +1,18 @@
+diff -ru pam-32.1/pam/modules/Makefile pam-32.1+iPhone/pam/modules/Makefile
+--- pam-32.1/pam/modules/Makefile 2002-03-28 08:43:24.000000000 +0000
++++ pam-32.1+iPhone/pam/modules/Makefile 2009-04-08 08:37:42.000000000 +0000
+@@ -13,7 +13,7 @@
+
+ all:
+ @echo building the static modutil library
+- make -C pammodutil all
++ $(MAKE) -C pammodutil all
+ @echo modules sources available are:
+ @ls -d $(MODDIRS) 2>/dev/null ; echo :--------
+ @echo
+@@ -56,4 +56,4 @@
+ $(MAKE) -C $$i clean ; \
+ } fi ; \
+ done
+- make -C pammodutil clean
++ $(MAKE) -C pammodutil clean
diff --git a/data/pam/make.sh b/data/pam/make.sh
new file mode 100644
index 000000000..a9df17501
--- /dev/null
+++ b/data/pam/make.sh
@@ -0,0 +1,28 @@
+pkg:setup
+
+pkg: mkdir -p /etc/pam.d
+for pam in pam.d/!(*.serverinstall); do
+ echo ${pam}
+ # XXX: fix pam_launchd
+ sed -re '/^#|.*pam_(deny|nologin|permit|rootok|securetty|unix|uwtmp|wheel).so/ ! s/^/#/; ' "${pam}" >"${PKG_DEST}/etc/${pam}"
+done
+
+cd pam
+autoconf
+pkg:configure --enable-fakeroot="${PKG_DEST}" --enable-read-both-confs --enable-sconfigdir=/etc/pam --enable-securedir=/usr/lib/pam --enable-giant-libpam --disable-libcrack
+
+CPATH=$(pwd):$CPATH
+make CC="${PKG_TARG}-gcc" AR="${PKG_TARG}-ar" LD="${PKG_TARG}-ld" RANLIB="${PKG_TARG}-ranlib"
+pkg:install
+
+pkg: mv /usr/lib/libpam.1.0.dylib /usr/lib/libpam.1.dylib
+pkg: ln -s libpam.1.dylib /usr/lib/libpam.1.0.dylib
+pkg: ln -s libpam.1.dylib /usr/lib/libpam.dylib
+
+pkg: ln -s libpam.1.dylib /usr/lib/libpam_misc.dylib
+pkg: ln -s libpam.1.dylib /usr/lib/libpam_misc.1.dylib
+
+pkg: ln -s libpam.1.dylib /usr/lib/libpamc.dylib
+pkg: ln -s libpam.1.dylib /usr/lib/libpamc.1.dylib
+
+pkg: cp -a libpam/include/pam/pam_modules.h /usr/include/pam
diff --git a/data/pam/pam-32.1.tar.gz b/data/pam/pam-32.1.tar.gz
new file mode 100644
index 000000000..ff5a68acc
--- /dev/null
+++ b/data/pam/pam-32.1.tar.gz
Binary files differ
diff --git a/data/pam/uname.diff b/data/pam/uname.diff
new file mode 100644
index 000000000..0b7482bb5
--- /dev/null
+++ b/data/pam/uname.diff
@@ -0,0 +1,12 @@
+diff -ru pam-32.1/pam/configure.in pam-32.1+iPhone/pam/configure.in
+--- pam-32.1/pam/configure.in 2006-07-11 03:24:07.000000000 +0000
++++ pam-32.1+iPhone/pam/configure.in 2009-04-08 08:28:52.000000000 +0000
+@@ -28,7 +28,7 @@
+ dnl Useful info (believed to be portable)
+ dnl
+ LOCALSRCDIR=`/bin/pwd` ; AC_SUBST(LOCALSRCDIR)
+-OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
++OS=darwin
+ AC_SUBST(OS)
+
+ dnl