summaryrefslogtreecommitdiff
path: root/data/samba/make.sh
blob: 34e42fababb78a3ccbf9579735a8a8599a17ade5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
pkg:setup
cd source
./autogen.sh
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 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 '.*'