Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 62 lines (45 sloc) 1.95 KB
#!/usr/bin/env beesh
SRCURL[0]="http://www.samba.org/samba/ftp/stable/samba-${PKGVERSION}.tar.gz"
PATCHURL[0]="/src/mariux/download/samba-${PKGVERSION}-0001-Revert-Final-part-of-jumbo-patch-for-bug-7104-wide-l.patch"
EXCLUDE="^/var"
PREFIX=/usr/local/samba-${PKGVERSION}-${PKGREVISION}
LOCALSTATEDIR=/var/samba-${PKGVERSION}-${PKGREVISION}
SYSCONFDIR=${PREFIX}/etc
mee_configure() {
cd ${S}/source3
./configure \
--prefix=${PREFIX} \
--sysconfdir=${SYSCONFDIR} \
--with-configdir=${SYSCONFDIR} \
--localstatedir=${LOCALSTATEDIR} \
--with-privatedir=${LOCALSTATEDIR}/private \
--with-lockdir=${LOCALSTATEDIR}/locks \
--with-statedir=${LOCALSTATEDIR}/locks \
--with-cachedir=${LOCALSTATEDIR}/locks \
--with-piddir=${LOCALSTATEDIR} \
--with-ncalrpcdir=${LOCALSTATEDIR}/ncalrpc \
--with-logfilebase=${LOCALSTATEDIR}/log \
--disable-swat
}
mee_build() {
# use 'make showflags' to get defaults... and add rpath GRMPF!!
make ${BEE_MAKEFLAGS} LDFLAGS='-pie -Wl,-z,relro -Wl,--as-needed -L./bin -Wl,-rpath,${LIBDIR}'
}
mee_install() {
make install DESTDIR=${D}
mkdir -p ${D}${PREFIX}
ln -s ${LOCALSTATEDIR} ${D}${PREFIX}/var
mkdir -p ${D}${SYSCONFDIR}
# tmpfiles.d setup
tmpfilesconf=/etc/tmpfiles.d/samba-${PKGVERSION}-${PKGREVISION}.conf
mkdir -p ${D}/etc/tmpfiles.d
echo "d ${LOCALSTATEDIR} 0755 root root -" >${D}${tmpfilesconf}
echo "d ${LOCALSTATEDIR}/private 0700 root root -" >>${D}${tmpfilesconf}
echo "d ${LOCALSTATEDIR}/locks 0755 root root -" >>${D}${tmpfilesconf}
echo "d ${LOCALSTATEDIR}/ncalrpc 0755 root root -" >>${D}${tmpfilesconf}
echo "d ${LOCALSTATEDIR}/log 0755 root root -" >>${D}${tmpfilesconf}
# for donald..
echo "PATH=${BINDIR}:${SBINDIR}:\${PATH}" >>${D}${PREFIX}/profile
# FYI
echo "# FYI config file is ${SYSCONFDIR}/smb.conf" >${D}${LIBDIR}/smb.conf
}