summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
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 '.*'