Skip to content

Commit ed29795

Browse files
committed
Fedora-based wafbuild script.
1 parent 36776cf commit ed29795

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

wafbuild-fed.sh

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
IDMAP_SHARED_MODULES="idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2"
2+
PDB_SHARED_MODULES="pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4"
3+
AUTH_SHARED_MODULES="auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4"
4+
5+
BUNDLES_LIBS="heimdal,!zlib,!popt,\
6+
talloc,pytalloc,pytalloc-util,\
7+
tevent,pytevent,\
8+
tdb,pytdb,\
9+
ldb,pyldb,pyldb-util"
10+
11+
LDFLAGS="-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"
12+
13+
CONFIGURE_OPTS=" \
14+
\
15+
--build=x86_64-redhat-linux-gnu \
16+
--host=x86_64-redhat-linux-gnu \
17+
--program-prefix= \
18+
--disable-dependency-tracking \
19+
--prefix=/usr \
20+
--exec-prefix=/usr \
21+
--bindir=/usr/bin \
22+
--sbindir=/usr/sbin \
23+
--sysconfdir=/etc \
24+
--datadir=/usr/share \
25+
--includedir=/usr/include \
26+
--libdir=/usr/lib64 \
27+
--libexecdir=/usr/libexec \
28+
--localstatedir=/var \
29+
--sharedstatedir=/var/lib \
30+
--mandir=/usr/share/man \
31+
--infodir=/usr/share/info \
32+
--enable-fhs \
33+
--with-piddir=/run \
34+
--with-sockets-dir=/run/samba \
35+
--with-modulesdir=/usr/lib64/samba \
36+
--with-pammodulesdir=/usr/lib64/security \
37+
--with-lockdir=/var/lib/samba/lock \
38+
--with-statedir=/var/lib/samba \
39+
--with-cachedir=/var/lib/samba \
40+
--disable-rpath-install \
41+
--with-shared-modules=${IDMAP_SHARED_MODULES},\
42+
${PDB_SHARED_MODULES},\
43+
${AUTH_SHARED_MODULES} \
44+
--bundled-libraries=${BUNDLED_LIBS} \
45+
--with-pam \
46+
--with-pie \
47+
--with-relro \
48+
--without-fam \
49+
--with-system-mitkrb5 \
50+
--without-ad-dc \
51+
--with-cluster-support \
52+
--with-profiling-data \
53+
--with-systemd \
54+
$@"
55+
56+
make distclean && ( export ${LDFLAGS}; ./buildtools/bin/waf configure ${CONFIGURE_OPTS} ) && make -j8

0 commit comments

Comments
 (0)