diff options
author | davidovski <david@davidovski.xyz> | 2023-02-02 14:10:02 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2023-02-02 14:10:02 +0000 |
commit | f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch) | |
tree | 76fe6267f8307e7630fc6f53ff99a9767ad40de0 /skip/samba/samba.xibuild | |
parent | 05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff) |
Work
Diffstat (limited to 'skip/samba/samba.xibuild')
-rw-r--r-- | skip/samba/samba.xibuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/skip/samba/samba.xibuild b/skip/samba/samba.xibuild new file mode 100644 index 0000000..6b5354b --- /dev/null +++ b/skip/samba/samba.xibuild @@ -0,0 +1,78 @@ +#!/bin/sh + +NAME="samba" +DESC="Tools to access a server's filespace and printers via SMB" + +MAKEDEPS="acl bind cups dbus docbook-xsl e2fsprogs fuse gnutls iniparser jansson ldb libarchive libcap libtirpc liburing pam musl-nscd ncurses libldap perl perl-parse-yapp popt python-tdb python-tevent python rpcgen subunit talloc tdb tevent zlib python-dnspython python-markdown tdb" + +PKG_VER=4.17.0 +SOURCE=" + https://download.samba.org/pub/samba/stable/samba-$PKG_VER.tar.gz + " + +ADDITIONAL=" +add_missing___compar_fn_t.patch +getpwent_r.patch +missing-headers.patch +musl_rm_unistd_incl.patch +musl_uintptr.patch +netapp.patch +netdb-defines.patch +pidl.patch +samba-bgqd-include-signal-h.patch +samba.confd +samba.initd +samba.logrotate +winbind.post-install +winbind.post-upgrade +winbind.pre-install +winbind.pre-upgrade +" + +prepare () { + apply_patches +} + +build() { + local _idmap_modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2 + local _pdb_modules=pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4 + local _auth_modules=auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4 + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc/samba \ + --with-configdir=/etc/samba \ + --localstatedir=/var \ + --libexecdir=/usr/lib \ + --enable-fhs \ + --with-lockdir=/var/cache/samba \ + --with-piddir=/run/samba \ + --with-logfilebase=/var/log/samba \ + --with-pam \ + --without-systemd \ + --with-ads \ + --with-shared-modules=$_idmap_modules,$_pdb_modules,$_auth_modules,vfs_io_uring \ + --enable-cups \ + --without-gettext \ + --bundled-libraries=NONE,ntdb,roken,wind,hx509,asn1,heimbase,hcrypto,krb5,gssapi,heimntlm,hdb,kdc,cmocka \ + --disable-rpath-install \ + --without-gpgme + make -j"$(nproc)" +} + +package() { + make DESTDIR="$PKG_DEST" install + + install -d "$PKG_DEST"/var/log/samba \ + "$PKG_DEST"/usr/share/doc/samba + install -dm755 "$PKG_DEST"/var/lib/samba/sysvol + install -Dm644 examples/smb.conf.default \ + "$PKG_DEST"/etc/samba/smb.conf + install -m744 packaging/printing/smbprint \ + "$PKG_DEST"/usr/bin/smbprint + install -Dm644 "$BUILD_ROOT"/samba.logrotate \ + "$PKG_DEST"/etc/logrotate.d/samba + + install -Dm755 "$BUILD_ROOT/samba.initd" "$PKG_DEST/etc/init.d/samba" + install -Dm644 "$BUILD_ROOT/samba.confd" "$PKG_DEST/etc/conf.d/samba" +} |