-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samba4: keep old samba-3.5.14-0.bee file
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/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 | ||
} |