summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2009-07-16 13:30:29 +0000
committerJay Freeman <saurik@saurik.com>2009-07-16 13:30:29 +0000
commit6bbe246c94d0d82d50faccf9fc85bc866c0af7a4 (patch)
tree7f2fbb4780d9e2633b2f37c9abde4e4e5cb83c6c /data
parentf774a4b72324b1a751c91b3009a7648895a02d2c (diff)
I apparently wanted this stuff.
git-svn-id: http://svn.telesphoreo.org/trunk@636 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'data')
-rwxr-xr-xdata/samba/_metadata/preinst8
-rw-r--r--data/samba/make.sh23
2 files changed, 28 insertions, 3 deletions
diff --git a/data/samba/_metadata/preinst b/data/samba/_metadata/preinst
new file mode 100755
index 000000000..fde74631a
--- /dev/null
+++ b/data/samba/_metadata/preinst
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [[ $1 == install || $1 == upgrade ]]; then
+ /usr/libexec/cydia/move.sh /usr/lib/vfs
+ /usr/libexec/cydia/move.sh /usr/samba
+fi
+
+exit 0
diff --git a/data/samba/make.sh b/data/samba/make.sh
index 1f3c39142..34e42faba 100644
--- a/data/samba/make.sh
+++ b/data/samba/make.sh
@@ -1,7 +1,24 @@
pkg:setup
cd source
./autogen.sh
-pkg:configure samba_cv_CC_NEGATIVE_ENUM_VALUES=yes
+pkg:configure samba_cv_CC_NEGATIVE_ENUM_VALUES=yes --without-cluster-support --disable-swat --without-ldap --with-configdir=/etc/samba --with-privatedir=/etc/samba --with-fhs
make
-pkg:install
-pkg: rm -rf /usr/swat
+pkg:install BIN_PROGS4=
+pkg: mkdir /usr/samba
+
+function smb:move() {
+ usr=$1
+ rex=$2
+ pkg: mkdir /usr/samba/"${usr}"
+ for bin in "${PKG_DEST}"/usr/"${usr}"/*; do
+ bin=${bin##*/}
+ if [[ ${bin} =~ ${rex} ]]; then
+ pkg: mv /usr/"${usr}"/"${bin}" /usr/samba/"${usr}"
+ ln -s /usr/samba/"${usr}"/"${bin}" "${PKG_DEST}"/usr/"${usr}"/"${bin}"
+ fi
+ done
+}
+
+smb:move bin '.*'
+smb:move lib '.*\.dylib\.[0-9]'
+smb:move sbin '.*'