upg glib-networking os-prober qt5-base
add samba/smbclient can't wait for obarun
This commit is contained in:
parent
569e966f0a
commit
66de3b6a1c
|
@ -6,7 +6,7 @@
|
|||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
pkgname=glib-networking
|
||||
pkgver=2.72.2
|
||||
pkgver=2.74.0
|
||||
pkgrel=01
|
||||
epoch=1
|
||||
pkgdesc="Network extensions for GLib w/o systemd"
|
||||
|
@ -16,7 +16,7 @@ depends=(glib2 libproxy gnutls gsettings-desktop-schemas)
|
|||
makedepends=(meson git)
|
||||
checkdepends=(ca-certificates)
|
||||
# options=(debug) ## uncomment this line to have the debug pkg produced
|
||||
_commit=f462ee496f7979df96fa928f34e1262a8148febc # tags/2.72.2^0
|
||||
_commit=d17632fe495c573612dd69e982a0c49af2952178 # tags/2.74.0^0
|
||||
source=("git+https://gitlab.gnome.org/GNOME/glib-networking.git#commit=$_commit")
|
||||
|
||||
pkgver() {
|
||||
|
@ -46,6 +46,7 @@ package() {
|
|||
|
||||
license=(GPL2)
|
||||
|
||||
sha256sums=(SKIP)
|
||||
sha256sums=(SKIP)
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
||||
|
||||
pkgname=glib-networking
|
||||
pkgver=2.72.2
|
||||
pkgver=2.74.0
|
||||
pkgrel=1
|
||||
epoch=1
|
||||
pkgdesc="Network extensions for GLib"
|
||||
|
@ -12,7 +12,7 @@ depends=(glib2 libproxy gnutls gsettings-desktop-schemas)
|
|||
makedepends=(meson git)
|
||||
checkdepends=(ca-certificates)
|
||||
options=(debug)
|
||||
_commit=f462ee496f7979df96fa928f34e1262a8148febc # tags/2.72.2^0
|
||||
_commit=d17632fe495c573612dd69e982a0c49af2952178 # tags/2.74.0^0
|
||||
source=("git+https://gitlab.gnome.org/GNOME/glib-networking.git#commit=$_commit")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
pkgbase=os-prober-patched
|
||||
pkgname=os-prober
|
||||
pkgver=1.80
|
||||
pkgver=1.81
|
||||
pkgrel=01
|
||||
pkgdesc="Utility to detect other OSes on a set of drives)"
|
||||
url='https://joeyh.name/code/os-prober/'
|
||||
|
@ -52,5 +52,5 @@ package() {
|
|||
|
||||
license=('GPL3')
|
||||
|
||||
sha256sums=(8063c38b9d006b94869e4127057d1189cb1adb561c2085c400b297ffa0cee38f) # os-prober_1.80.tar.xz
|
||||
sha256sums=(2fd928ec86538227711e2adf49cfd6a1ef74f6bb3555c5dad4e0425ccd978883) # os-prober_1.81.tar.xz
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
# Contributor: darkcoder <mario_vazq@hotmail.com>
|
||||
|
||||
pkgname=os-prober
|
||||
pkgver=1.80
|
||||
pkgver=1.81
|
||||
pkgrel=1
|
||||
pkgdesc='Utility to detect other OSes on a set of drives'
|
||||
url='https://joeyh.name/code/os-prober/'
|
||||
|
@ -11,8 +11,8 @@ arch=('x86_64')
|
|||
license=('GPL3')
|
||||
depends=('sh')
|
||||
source=(http://http.debian.net/debian/pool/main/o/${pkgname}/${pkgname}_${pkgver}.tar.xz)
|
||||
sha512sums=('51b4fefb784d5ecf34f5148157ef233e2979c4a679a54600144be473bb6ccaf263c9121701a1ecc7523c7e3bfc439a4e3a92a5eb92431ead99cbe666b0f0e6f5')
|
||||
b2sums=('56883c7d3f4c5dde2904cffc77fdf6a2c1caf230f9e84197e8d976e446815838448bb42afd18d4c9526efac9907db3d2e77c6f54889011d2d03d284a44ff4cbd')
|
||||
sha512sums=('ffb0e618f9e58a7a8e4a265d253bad4e168c220697216684acb38dbfa20680e552eb7c5f3d2186cd750c61a8929bf152527aa85c39318ed8b025a4ffffadde50')
|
||||
b2sums=('0159870612d265c5e610e093a8839129aa9dc111a6f3abee65a6044b4c997ba65a69f70deca246bde53c1cf5314812312178e82c0893093d9f23ced3b0176f9d')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
real 0m2.005s
|
||||
user 0m1.806s
|
||||
sys 0m0.362s
|
||||
|
||||
real 0m1.619s
|
||||
user 0m1.510s
|
||||
sys 0m0.270s
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
pkgbase=qt5-base
|
||||
pkgname=(qt5-base qt5-xcb-private-headers)
|
||||
_basever=5.15.6
|
||||
pkgver=5.15.6+kde+r167
|
||||
_commit=1d28b25aae18db0bf856dc2d6ae86644669c358e
|
||||
pkgver=5.15.6+kde+r177
|
||||
_commit=411b90bfe5a0c57f526b93f2c01cf089e70266ad
|
||||
pkgrel=01
|
||||
arch=('x86_64')
|
||||
url='https://www.qt.io'
|
||||
|
@ -21,7 +21,6 @@ makedepends=('libfbclient' 'mariadb-libs' 'unixodbc' 'postgresql-libs' 'alsa-lib
|
|||
'gtk3' 'libpulse' 'cups' 'freetds' 'vulkan-headers' 'git')
|
||||
optdepends=('qt5-svg: to use SVG icon themes'
|
||||
'qt5-wayland: to run Qt applications in a Wayland session'
|
||||
'qt5-translations: for some native UI translations'
|
||||
'postgresql-libs: PostgreSQL driver'
|
||||
'mariadb-libs: MariaDB driver'
|
||||
'unixodbc: ODBC driver'
|
||||
|
@ -128,3 +127,5 @@ sha256sums=(SKIP
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
pkgbase=qt5-base
|
||||
pkgname=(qt5-base qt5-xcb-private-headers)
|
||||
_basever=5.15.6
|
||||
pkgver=5.15.6+kde+r167
|
||||
pkgver=5.15.6+kde+r177
|
||||
pkgrel=1
|
||||
_commit=1d28b25aae18db0bf856dc2d6ae86644669c358e
|
||||
_commit=411b90bfe5a0c57f526b93f2c01cf089e70266ad
|
||||
arch=('x86_64')
|
||||
url='https://www.qt.io'
|
||||
license=('GPL3' 'LGPL3' 'FDL' 'custom')
|
||||
|
@ -18,7 +18,6 @@ makedepends=('libfbclient' 'mariadb-libs' 'unixodbc' 'postgresql-libs' 'alsa-lib
|
|||
'gtk3' 'libpulse' 'cups' 'freetds' 'vulkan-headers' 'git')
|
||||
optdepends=('qt5-svg: to use SVG icon themes'
|
||||
'qt5-wayland: to run Qt applications in a Wayland session'
|
||||
'qt5-translations: for some native UI translations'
|
||||
'postgresql-libs: PostgreSQL driver'
|
||||
'mariadb-libs: MariaDB driver'
|
||||
'unixodbc: ODBC driver'
|
||||
|
|
|
@ -0,0 +1,207 @@
|
|||
#!/usr/bin/bash
|
||||
# JOBoRun : Jwm OpenBox Obarun RUNit
|
||||
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
||||
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
||||
# Website : https://pozol.eu
|
||||
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
||||
|
||||
pkgbase=samba
|
||||
pkgname=('smbclient' 'samba')
|
||||
pkgver=4.17.0
|
||||
pkgrel=01
|
||||
arch=(x86_64)
|
||||
url="https://www.samba.org"
|
||||
makedepends=('python' 'python-markdown' 'python-dnspython' 'docbook-xsl' 'pkg-config' 'libbsd' 'db' 'popt' 'libcups'
|
||||
'readline' 'tevent' 'acl' 'libldap' 'libcap' 'ldb' 'krb5' 'pam'
|
||||
'gnutls' 'talloc' 'tdb' 'dbus' 'libaio'
|
||||
'perl-parse-yapp' 'libnsl' 'libtirpc' 'rpcsvc-proto' 'jansson'
|
||||
'liburing' 'perl-json' 'glusterfs')
|
||||
optdepends=( 'python-dnspython: samba_dnsupdate and samba_upgradedns in AD setup'
|
||||
'python-markdown: for samba-tool domain schemeupgrade'
|
||||
'glusterfs: for vfs_glusterfs support')
|
||||
source=(https://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar{.gz,.asc}
|
||||
samba.logrotate
|
||||
samba.pam
|
||||
samba.sysconfig
|
||||
samba.tmpfiles)
|
||||
|
||||
### UNINSTALL dmapi package before building!!!
|
||||
|
||||
#prepare() {
|
||||
# cd samba-${pkgver}
|
||||
#}
|
||||
|
||||
build() {
|
||||
# Use samba-pkg as a staging directory for the split packages
|
||||
# (This is so RPATHS and symlinks are generated correctly via
|
||||
# make install, but the otherwise unsplit pieces can be split)
|
||||
_pkgsrc="${srcdir}"/samba-pkg
|
||||
rm -rf ${_pkgsrc}
|
||||
_samba4_idmap_modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2
|
||||
_samba4_pdb_modules=pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4
|
||||
_samba4_auth_modules=auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4
|
||||
cd samba-${pkgver}
|
||||
./configure --enable-fhs \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--sbindir=/usr/bin \
|
||||
--libdir=/usr/lib \
|
||||
--libexecdir=/usr/lib/samba \
|
||||
--localstatedir=/var \
|
||||
--with-configdir=/etc/samba \
|
||||
--with-lockdir=/var/cache/samba \
|
||||
--with-sockets-dir=/run/samba \
|
||||
--with-piddir=/run \
|
||||
--with-ads \
|
||||
--with-ldap \
|
||||
--with-winbind \
|
||||
--with-acl-support \
|
||||
--without-systemd \
|
||||
--with-pam \
|
||||
--with-pammodulesdir=/usr/lib/security \
|
||||
--bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb,!pyldb-util \
|
||||
--with-shared-modules=${_samba4_idmap_modules},${_samba4_pdb_modules},${_samba4_auth_modules},vfs_io_uring \
|
||||
--disable-rpath-install \
|
||||
--with-profiling-data \
|
||||
--enable-fhs
|
||||
|
||||
# Add this to the options once it's working...
|
||||
#--with-system-mitkrb5 /opt/heimdal
|
||||
make
|
||||
make DESTDIR="${_pkgsrc}/" install
|
||||
|
||||
# This gets skipped somehow
|
||||
if [ ! -e "${_pkgsrc}"/usr/bin/smbtar ]; then
|
||||
install -m755 "${srcdir}"/samba-${pkgver}/source3/script/smbtar "${_pkgsrc}"/usr/bin/
|
||||
fi
|
||||
}
|
||||
|
||||
package_smbclient() {
|
||||
pkgdesc="Tools to access a server's filespace and printers via SMB w/o systemd"
|
||||
depends=('popt' 'cifs-utils' 'tdb' 'ldb'
|
||||
'tevent' 'libgcrypt' 'python' 'talloc' 'readline' 'gnutls'
|
||||
'libbsd' 'libldap' 'libcups' 'libarchive' 'libnsl' 'jansson'
|
||||
'libldb.so' 'libtdb.so' 'libtevent.so' 'libreadline.so' 'icu' 'libunwind')
|
||||
replaces=('libwbclient')
|
||||
provides=('libwbclient')
|
||||
|
||||
_smbclient_bins=('smbclient' 'rpcclient' 'smbspool'
|
||||
'smbtree' 'smbcacls' 'smbcquotas' 'smbget' 'net'
|
||||
'nmblookup' 'smbtar')
|
||||
# Use samba-pkg as a staging directory for the split packages
|
||||
# (This is so RPATHS and symlinks are generated correctly via
|
||||
# make install, but the otherwise unsplit pieces can be split)
|
||||
_pkgsrc="${srcdir}"/samba-pkg
|
||||
install -d -m755 "${pkgdir}"/usr/bin
|
||||
for bin in ${_smbclient_bins[@]}; do
|
||||
mv "${_pkgsrc}"/usr/bin/${bin} "${pkgdir}"/usr/bin/
|
||||
done
|
||||
|
||||
# smbclient binaries link to the majority of the samba
|
||||
# libs, so this is a shortcut instead of resolving the
|
||||
# whole dependency tree by hand
|
||||
install -d -m755 "${pkgdir}"/usr/lib
|
||||
for lib in "${_pkgsrc}"/usr/lib/lib*.so*; do
|
||||
mv ${lib} "${pkgdir}"/usr/lib/
|
||||
done
|
||||
|
||||
install -d -m755 "${pkgdir}"/usr/lib/samba
|
||||
for lib in "${_pkgsrc}"/usr/lib/samba/lib*.so*; do
|
||||
mv ${lib} "${pkgdir}"/usr/lib/samba/
|
||||
done
|
||||
|
||||
install -d -m755 "${pkgdir}"/usr/lib/pkgconfig
|
||||
mv "${_pkgsrc}"/usr/lib/pkgconfig/smbclient.pc "${pkgdir}"/usr/lib/pkgconfig/
|
||||
mv "${_pkgsrc}"/usr/lib/pkgconfig/netapi.pc "${pkgdir}"/usr/lib/pkgconfig/
|
||||
mv "${_pkgsrc}"/usr/lib/pkgconfig/wbclient.pc "${pkgdir}"/usr/lib/pkgconfig/
|
||||
|
||||
install -d -m755 "${pkgdir}"/usr/share/man/man1
|
||||
install -d -m755 "${pkgdir}"/usr/share/man/man7
|
||||
install -d -m755 "${pkgdir}"/usr/share/man/man8
|
||||
for bin in ${_smbclient_bins[@]}; do
|
||||
if [ -e "${_pkgsrc}"/usr/share/man/man1/${bin}.1 ]; then
|
||||
mv "${_pkgsrc}"/usr/share/man/man1/${bin}.1 "${pkgdir}"/usr/share/man/man1/
|
||||
fi
|
||||
if [ -e "${_pkgsrc}"/usr/share/man/man8/${bin}.8 ]; then
|
||||
mv "${_pkgsrc}"/usr/share/man/man8/${bin}.8 "${pkgdir}"/usr/share/man/man8/
|
||||
fi
|
||||
done
|
||||
mv "${_pkgsrc}"/usr/share/man/man7/libsmbclient.7 "${pkgdir}"/usr/share/man/man7/
|
||||
|
||||
install -d -m755 "${pkgdir}"/usr/include/samba-4.0
|
||||
mv "${_pkgsrc}"/usr/include/samba-4.0/libsmbclient.h "${pkgdir}"/usr/include/samba-4.0/
|
||||
mv "${_pkgsrc}"/usr/include/samba-4.0/netapi.h "${pkgdir}"/usr/include/samba-4.0/
|
||||
mv "${_pkgsrc}"/usr/include/samba-4.0/wbclient.h "${pkgdir}"/usr/include/samba-4.0/
|
||||
|
||||
mkdir -p "${pkgdir}"/usr/lib/cups/backend
|
||||
ln -sf /usr/bin/smbspool "${pkgdir}"/usr/lib/cups/backend/smb
|
||||
}
|
||||
|
||||
package_samba() {
|
||||
pkgdesc="SMB Fileserver and AD Domain server w/o systemd"
|
||||
depends=('db>=4.7' 'popt' 'libcups' 'libcap>=2.16' 'gnutls>=2.4.1'
|
||||
'talloc' 'ldb' 'libbsd' 'python' 'iniparser' 'tdb' 'libaio' 'perl-parse-yapp' "smbclient>=$pkgver" 'gpgme'
|
||||
'libldb.so' 'libtdb.so' 'libtevent.so' 'liburing' 'libunwind')
|
||||
backup=(etc/logrotate.d/samba
|
||||
etc/pam.d/samba
|
||||
etc/conf.d/samba)
|
||||
install=samba.install
|
||||
# Use samba-pkg as a staging directory for the split packages
|
||||
# (This is so RPATHS and symlinks are generated correctly via
|
||||
# make install, but the otherwise unsplit pieces can be split)
|
||||
_pkgsrc="${srcdir}"/samba-pkg
|
||||
# Everything that libwbclient and smbclient didn't install goes
|
||||
# into the samba package...
|
||||
mv "${_pkgsrc}"/* "${pkgdir}"
|
||||
rmdir "${_pkgsrc}"
|
||||
|
||||
# Make admin scripts look in the right place for the samba python module
|
||||
for script in bin/samba_dnsupdate bin/samba_kcc bin/samba_spnupdate \
|
||||
bin/samba_upgradedns bin/samba-tool
|
||||
do
|
||||
sed -i "/^sys\.path\.insert/ a\
|
||||
sys.path.insert(0, '/usr/lib/python${_pyver}/site-packages')" \
|
||||
"${pkgdir}"/usr/${script}
|
||||
done
|
||||
|
||||
## packaging/wscript_build to use /etc/conf.d
|
||||
#sed -i -e '/^EnvironmentFile/ s/sysconfig/conf.d/' "${pkgdir}"/usr/lib/systemd/system/*.service
|
||||
install -d -m755 "${pkgdir}"/etc/conf.d
|
||||
install -m644 "${srcdir}"/samba.sysconfig "${pkgdir}"/etc/conf.d/samba
|
||||
|
||||
# create ephemeral dirs via tmpfiles rather than shipping them in package
|
||||
install -D -m644 "${srcdir}"/samba.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/samba.conf
|
||||
|
||||
# create config dir
|
||||
install -d -m755 "${pkgdir}"/etc/samba
|
||||
|
||||
mkdir -p "${pkgdir}"/etc/samba/private
|
||||
chmod 700 "${pkgdir}"/etc/samba/private
|
||||
|
||||
install -D -m644 "${srcdir}"/samba.logrotate "${pkgdir}"/etc/logrotate.d/samba
|
||||
install -D -m644 "${srcdir}"/samba.pam "${pkgdir}"/etc/pam.d/samba
|
||||
|
||||
# spool directory
|
||||
install -d -m1777 "${pkgdir}"/var/spool/samba
|
||||
|
||||
rm -rf "${pkgdir}"/run
|
||||
rm -rf "${pkgdir}"/var/run
|
||||
rm -rf "${pkgdir}"/etc/sysconfig
|
||||
|
||||
# copy ldap example
|
||||
install -D -m644 "$srcdir"/samba-$pkgver/examples/LDAP/samba.schema "$pkgdir"/usr/share/doc/samba/examples/LDAP/samba.schema
|
||||
}
|
||||
|
||||
#---- license gpg-key sha256sums ----
|
||||
|
||||
license=('GPL3')
|
||||
|
||||
validpgpkeys=('81F5E2832BD2545A1897B713AA99442FB680B620') #Samba Distribution Verification Key <samba-bugs@samba.org>
|
||||
|
||||
sha256sums=(04868ecda82fcbeda7b8bf519a2461a64d55c6e70efc6f6053b2fbba55f1823a # samba-4.17.0.tar.gz
|
||||
db1554a07ba58c7754431a8bb63f84230ad5884ecdc00a29042daf3f582e6d86 # samba-4.17.0.tar.asc
|
||||
0b570570ea49f82e6f9da47b1cce3b441859f52de105b54d4d79b873b924623f # samba.logrotate
|
||||
57dfd072fd7ef0018c6b0a798367aac1abb5979060ff3f9df22d1048bb71c0d5 # samba.pam
|
||||
f2d11032015ef917f4af50f3933d432fa744b5f846ab4d980247e329e52d34bc # samba.sysconfig
|
||||
5398a42ccb36ac3b87cfa42c8050b535efc2ca38ab3b9354a52f4e0fe71b5800) # samba.tmpfiles
|
||||
|
|
@ -0,0 +1,204 @@
|
|||
|
||||
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
|
||||
# Contributor: judd <jvinet@zeroflux.org>
|
||||
# Contributor: Michael Hansen <zrax0111 gmail com>
|
||||
# Contributor: Marco A Rojas <marquicus at gmail.com>
|
||||
# Contributor: Netanel Shine <netanel at archlinux.org.il >
|
||||
# Contributor: ngoonee <ngoonee.talk@gmail.com>
|
||||
# Contributor: Adam Russell <adamlr6+arch@gmail.com>
|
||||
# Contributor: Dhananjay Sathe <dhananjaysathe@gmail.com>
|
||||
|
||||
pkgbase=samba
|
||||
pkgname=('smbclient' 'samba')
|
||||
pkgver=4.17.0
|
||||
pkgrel=1
|
||||
arch=(x86_64)
|
||||
url="https://www.samba.org"
|
||||
license=('GPL3')
|
||||
makedepends=('python' 'python-markdown' 'python-dnspython' 'docbook-xsl' 'pkg-config' 'libbsd' 'db' 'popt' 'libcups'
|
||||
'readline' 'tevent' 'acl' 'libldap' 'libcap' 'ldb' 'krb5' 'pam'
|
||||
'systemd' 'gnutls' 'talloc' 'tdb' 'dbus' 'libaio'
|
||||
'perl-parse-yapp' 'libnsl' 'libtirpc' 'rpcsvc-proto' 'jansson'
|
||||
'liburing' 'perl-json' 'glusterfs')
|
||||
optdepends=(
|
||||
'python-dnspython: samba_dnsupdate and samba_upgradedns in AD setup'
|
||||
'python-markdown: for samba-tool domain schemeupgrade'
|
||||
'glusterfs: for vfs_glusterfs support'
|
||||
)
|
||||
source=(https://us1.samba.org/samba/ftp/stable/${pkgbase}-${pkgver}.tar{.gz,.asc}
|
||||
samba.logrotate
|
||||
samba.pam
|
||||
samba.conf)
|
||||
validpgpkeys=('81F5E2832BD2545A1897B713AA99442FB680B620') #Samba Distribution Verification Key <samba-bugs@samba.org>
|
||||
sha512sums=('7c590ca2c3e05a52f67c190643819668fd4aeefb251d36c2a9a9b17ce078c0ea2375c4b8bde8a4fabe517465c90ab3a33fd72cf447358c9af89bf7492f7cdaa1'
|
||||
'SKIP'
|
||||
'2ba0691ded467e4d6e40821f6de58c00f8962209efe2e60284c0c87756ab471c22c3d63b77d506e48c90ed0d852a2a24e41be1d499cf74a73cb99da0b503c858'
|
||||
'1e6183ab0eb812b3ef687ac2c26ce78f7cb30540f606d20023669ac00ba04075487fb72e4dc89cc05dab0269ff6aca98fc1167cc75669c225b88b592482fbf67'
|
||||
'e46ee848baabb261e7468ecee43aba4d001a24f86f5322ae522abdb75030fd0ebd9063b9df0be3576c4d1654d81331f5e389aee16ec2fa138259ae4728e94efc')
|
||||
### UNINSTALL dmapi package before building!!!
|
||||
|
||||
#prepare() {
|
||||
# cd samba-${pkgver}
|
||||
#}
|
||||
|
||||
build() {
|
||||
# Use samba-pkg as a staging directory for the split packages
|
||||
# (This is so RPATHS and symlinks are generated correctly via
|
||||
# make install, but the otherwise unsplit pieces can be split)
|
||||
_pkgsrc="${srcdir}"/samba-pkg
|
||||
rm -rf ${_pkgsrc}
|
||||
_samba4_idmap_modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash,idmap_tdb2
|
||||
_samba4_pdb_modules=pdb_tdbsam,pdb_ldap,pdb_ads,pdb_smbpasswd,pdb_wbc_sam,pdb_samba4
|
||||
_samba4_auth_modules=auth_unix,auth_wbc,auth_server,auth_netlogond,auth_script,auth_samba4
|
||||
cd samba-${pkgver}
|
||||
./configure --enable-fhs \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--sbindir=/usr/bin \
|
||||
--libdir=/usr/lib \
|
||||
--libexecdir=/usr/lib/samba \
|
||||
--localstatedir=/var \
|
||||
--with-configdir=/etc/samba \
|
||||
--with-lockdir=/var/cache/samba \
|
||||
--with-sockets-dir=/run/samba \
|
||||
--with-piddir=/run \
|
||||
--with-ads \
|
||||
--with-ldap \
|
||||
--with-winbind \
|
||||
--with-acl-support \
|
||||
--with-systemd \
|
||||
--systemd-install-services \
|
||||
--with-pam \
|
||||
--with-pammodulesdir=/usr/lib/security \
|
||||
--bundled-libraries=!tdb,!talloc,!pytalloc-util,!tevent,!popt,!ldb,!pyldb-util \
|
||||
--with-shared-modules=${_samba4_idmap_modules},${_samba4_pdb_modules},${_samba4_auth_modules},vfs_io_uring \
|
||||
--disable-rpath-install \
|
||||
--with-profiling-data
|
||||
|
||||
# Add this to the options once it's working...
|
||||
#--with-system-mitkrb5 /opt/heimdal
|
||||
make
|
||||
make DESTDIR="${_pkgsrc}/" install
|
||||
|
||||
# This gets skipped somehow
|
||||
if [ ! -e "${_pkgsrc}"/usr/bin/smbtar ]; then
|
||||
install -m755 "${srcdir}"/samba-${pkgver}/source3/script/smbtar "${_pkgsrc}"/usr/bin/
|
||||
fi
|
||||
}
|
||||
|
||||
package_smbclient() {
|
||||
pkgdesc="Tools to access a server's filespace and printers via SMB"
|
||||
depends=('popt' 'cifs-utils' 'tdb' 'ldb'
|
||||
'tevent' 'libgcrypt' 'python' 'talloc' 'readline' 'gnutls'
|
||||
'libbsd' 'libldap' 'libcups' 'libarchive' 'libnsl' 'jansson'
|
||||
'libldb.so' 'libtdb.so' 'libtevent.so' 'libreadline.so' 'icu' 'libunwind')
|
||||
replaces=('libwbclient')
|
||||
provides=('libwbclient')
|
||||
|
||||
_smbclient_bins=('smbclient' 'rpcclient' 'smbspool'
|
||||
'smbtree' 'smbcacls' 'smbcquotas' 'smbget' 'net'
|
||||
'nmblookup' 'smbtar')
|
||||
# Use samba-pkg as a staging directory for the split packages
|
||||
# (This is so RPATHS and symlinks are generated correctly via
|
||||
# make install, but the otherwise unsplit pieces can be split)
|
||||
_pkgsrc="${srcdir}"/samba-pkg
|
||||
install -d -m755 "${pkgdir}"/usr/bin
|
||||
for bin in ${_smbclient_bins[@]}; do
|
||||
mv "${_pkgsrc}"/usr/bin/${bin} "${pkgdir}"/usr/bin/
|
||||
done
|
||||
|
||||
# smbclient binaries link to the majority of the samba
|
||||
# libs, so this is a shortcut instead of resolving the
|
||||
# whole dependency tree by hand
|
||||
install -d -m755 "${pkgdir}"/usr/lib
|
||||
for lib in "${_pkgsrc}"/usr/lib/lib*.so*; do
|
||||
mv ${lib} "${pkgdir}"/usr/lib/
|
||||
done
|
||||
|
||||
install -d -m755 "${pkgdir}"/usr/lib/samba
|
||||
for lib in "${_pkgsrc}"/usr/lib/samba/lib*.so*; do
|
||||
mv ${lib} "${pkgdir}"/usr/lib/samba/
|
||||
done
|
||||
|
||||
install -d -m755 "${pkgdir}"/usr/lib/pkgconfig
|
||||
mv "${_pkgsrc}"/usr/lib/pkgconfig/smbclient.pc "${pkgdir}"/usr/lib/pkgconfig/
|
||||
mv "${_pkgsrc}"/usr/lib/pkgconfig/netapi.pc "${pkgdir}"/usr/lib/pkgconfig/
|
||||
mv "${_pkgsrc}"/usr/lib/pkgconfig/wbclient.pc "${pkgdir}"/usr/lib/pkgconfig/
|
||||
|
||||
install -d -m755 "${pkgdir}"/usr/share/man/man1
|
||||
install -d -m755 "${pkgdir}"/usr/share/man/man7
|
||||
install -d -m755 "${pkgdir}"/usr/share/man/man8
|
||||
for bin in ${_smbclient_bins[@]}; do
|
||||
if [ -e "${_pkgsrc}"/usr/share/man/man1/${bin}.1 ]; then
|
||||
mv "${_pkgsrc}"/usr/share/man/man1/${bin}.1 "${pkgdir}"/usr/share/man/man1/
|
||||
fi
|
||||
if [ -e "${_pkgsrc}"/usr/share/man/man8/${bin}.8 ]; then
|
||||
mv "${_pkgsrc}"/usr/share/man/man8/${bin}.8 "${pkgdir}"/usr/share/man/man8/
|
||||
fi
|
||||
done
|
||||
mv "${_pkgsrc}"/usr/share/man/man7/libsmbclient.7 "${pkgdir}"/usr/share/man/man7/
|
||||
|
||||
install -d -m755 "${pkgdir}"/usr/include/samba-4.0
|
||||
mv "${_pkgsrc}"/usr/include/samba-4.0/libsmbclient.h "${pkgdir}"/usr/include/samba-4.0/
|
||||
mv "${_pkgsrc}"/usr/include/samba-4.0/netapi.h "${pkgdir}"/usr/include/samba-4.0/
|
||||
mv "${_pkgsrc}"/usr/include/samba-4.0/wbclient.h "${pkgdir}"/usr/include/samba-4.0/
|
||||
|
||||
mkdir -p "${pkgdir}"/usr/lib/cups/backend
|
||||
ln -sf /usr/bin/smbspool "${pkgdir}"/usr/lib/cups/backend/smb
|
||||
}
|
||||
|
||||
package_samba() {
|
||||
pkgdesc="SMB Fileserver and AD Domain server"
|
||||
depends=('db>=4.7' 'popt' 'libcups' 'libcap>=2.16' 'gnutls>=2.4.1'
|
||||
'talloc' 'ldb' 'libbsd' 'python' 'iniparser' 'tdb' 'libaio' 'perl-parse-yapp' "smbclient>=$pkgver" 'gpgme'
|
||||
'libldb.so' 'libtdb.so' 'libtevent.so' 'liburing' 'libunwind')
|
||||
backup=(etc/logrotate.d/samba
|
||||
etc/pam.d/samba
|
||||
etc/conf.d/samba)
|
||||
install=samba.install
|
||||
# Use samba-pkg as a staging directory for the split packages
|
||||
# (This is so RPATHS and symlinks are generated correctly via
|
||||
# make install, but the otherwise unsplit pieces can be split)
|
||||
_pkgsrc="${srcdir}"/samba-pkg
|
||||
# Everything that libwbclient and smbclient didn't install goes
|
||||
# into the samba package...
|
||||
mv "${_pkgsrc}"/* "${pkgdir}"
|
||||
rmdir "${_pkgsrc}"
|
||||
|
||||
# Make admin scripts look in the right place for the samba python module
|
||||
for script in bin/samba_dnsupdate bin/samba_kcc bin/samba_spnupdate \
|
||||
bin/samba_upgradedns bin/samba-tool
|
||||
do
|
||||
sed -i "/^sys\.path\.insert/ a\
|
||||
sys.path.insert(0, '/usr/lib/python${_pyver}/site-packages')" \
|
||||
"${pkgdir}"/usr/${script}
|
||||
done
|
||||
|
||||
# packaging/wscript_build to use /etc/conf.d
|
||||
sed -i -e '/^EnvironmentFile/ s/sysconfig/conf.d/' "${pkgdir}"/usr/lib/systemd/system/*.service
|
||||
install -d -m755 "${pkgdir}"/etc/conf.d
|
||||
install -m644 "${srcdir}"/samba-${pkgver}/packaging/systemd/samba.sysconfig "${pkgdir}"/etc/conf.d/samba
|
||||
|
||||
# create ephemeral dirs via tmpfiles rather than shipping them in package
|
||||
install -D -m644 "${srcdir}"/samba.conf "${pkgdir}"/usr/lib/tmpfiles.d/samba.conf
|
||||
# create config dir
|
||||
install -d -m755 "${pkgdir}"/etc/samba
|
||||
|
||||
mkdir -p "${pkgdir}"/etc/samba/private
|
||||
chmod 700 "${pkgdir}"/etc/samba/private
|
||||
|
||||
install -D -m644 "${srcdir}"/samba.logrotate "${pkgdir}"/etc/logrotate.d/samba
|
||||
install -D -m644 "${srcdir}"/samba.pam "${pkgdir}"/etc/pam.d/samba
|
||||
|
||||
# spool directory
|
||||
install -d -m1777 "${pkgdir}"/var/spool/samba
|
||||
|
||||
rm -rf "${pkgdir}"/run
|
||||
rm -rf "${pkgdir}"/var/run
|
||||
rm -rf "${pkgdir}"/etc/sysconfig
|
||||
|
||||
# copy ldap example
|
||||
install -D -m644 "${srcdir}"/samba-${pkgver}/examples/LDAP/samba.schema "${pkgdir}"/usr/share/doc/samba/examples/LDAP/samba.schema
|
||||
}
|
||||
|
||||
# vim: ts=2 sw=2 et:
|
|
@ -0,0 +1 @@
|
|||
rm -rf {src,pkg,samba*tar.*}
|
|
@ -0,0 +1,20 @@
|
|||
python
|
||||
python-markdown
|
||||
python-dnspython
|
||||
docbook-xsl
|
||||
libbsd
|
||||
popt
|
||||
libcups
|
||||
tevent
|
||||
ldb
|
||||
talloc
|
||||
tdb
|
||||
libaio
|
||||
perl-parse-yapp
|
||||
libnsl
|
||||
rpcsvc-proto
|
||||
liburing
|
||||
perl-json
|
||||
glusterfs
|
||||
|
||||
bison
|
|
@ -0,0 +1,57 @@
|
|||
From eee9ff0228f52008bfc565241f6dfe07ae7a7044 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Schneider <asn@samba.org>
|
||||
Date: Tue, 2 Aug 2022 07:55:46 +0200
|
||||
Subject: [PATCH] lib:replace: Only include <sys/mount.h> on non-Linux systems
|
||||
|
||||
Details at:
|
||||
https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E
|
||||
|
||||
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15132
|
||||
|
||||
Signed-off-by: Andreas Schneider <asn@samba.org>
|
||||
Reviewed-by: Ralph Boehme <slow@samba.org>
|
||||
(cherry picked from commit 766151bf5b7ef95ae4c8c98b8994e5c21c5bbec0)
|
||||
---
|
||||
lib/replace/system/filesys.h | 4 +++-
|
||||
lib/replace/wscript | 3 +++
|
||||
2 files changed, 6 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/lib/replace/system/filesys.h b/lib/replace/system/filesys.h
|
||||
index 034e5d5886c..bb9482c69af 100644
|
||||
--- a/lib/replace/system/filesys.h
|
||||
+++ b/lib/replace/system/filesys.h
|
||||
@@ -36,7 +36,8 @@
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
-#ifdef HAVE_SYS_MOUNT_H
|
||||
+/* This include is required on UNIX (*BSD, AIX, ...) for statfs() */
|
||||
+#if !defined(LINUX) && defined(HAVE_SYS_MOUNT_H)
|
||||
#include <sys/mount.h>
|
||||
#endif
|
||||
|
||||
@@ -44,6 +45,7 @@
|
||||
#include <mntent.h>
|
||||
#endif
|
||||
|
||||
+/* This include is required on Linux for statfs() */
|
||||
#ifdef HAVE_SYS_VFS_H
|
||||
#include <sys/vfs.h>
|
||||
#endif
|
||||
diff --git a/lib/replace/wscript b/lib/replace/wscript
|
||||
index e4c2d513076..0db93d8caf1 100644
|
||||
--- a/lib/replace/wscript
|
||||
+++ b/lib/replace/wscript
|
||||
@@ -31,6 +31,9 @@ def configure(conf):
|
||||
|
||||
conf.env.standalone_replace = conf.IN_LAUNCH_DIR()
|
||||
|
||||
+ if sys.platform.rfind('linux') > -1:
|
||||
+ conf.DEFINE('LINUX', '1')
|
||||
+
|
||||
conf.DEFINE('BOOL_DEFINED', 1)
|
||||
conf.DEFINE('HAVE_LIBREPLACE', 1)
|
||||
conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
|
||||
--
|
||||
2.37.1
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
D /run/samba 0755 - - -
|
||||
d /var/log/samba 0755 - - -
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
post_upgrade() {
|
||||
if [ "$(vercmp $2 4.0.4)" -lt 0 ]; then
|
||||
echo "Major upgrade from samba 3.x to 4.x,"
|
||||
echo "please read the Samba4 migration guide:"
|
||||
echo "http://wiki.samba.org/index.php/Samba4/samba3upgrade/HOWTO"
|
||||
fi
|
||||
}
|
||||
# vim:set ts=2 sw=2 et:
|
|
@ -0,0 +1,5 @@
|
|||
/var/log/samba/log.smbd /var/log/samba/log.nmbd /var/log/samba/*.log {
|
||||
notifempty
|
||||
missingok
|
||||
copytruncate
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
auth required pam_unix.so
|
||||
account required pam_unix.so
|
||||
session required pam_unix.so
|
|
@ -0,0 +1,18 @@
|
|||
## Path: Network/Samba
|
||||
## Description: Samba process options
|
||||
## Type: string
|
||||
## Default: ""
|
||||
## ServiceRestart: samba
|
||||
SAMBAOPTIONS=""
|
||||
## Type: string
|
||||
## Default: ""
|
||||
## ServiceRestart: smb
|
||||
SMBDOPTIONS=""
|
||||
## Type: string
|
||||
## Default: ""
|
||||
## ServiceRestart: nmb
|
||||
NMBDOPTIONS=""
|
||||
## Type: string
|
||||
## Default: ""
|
||||
## ServiceRestart: winbind
|
||||
WINBINDOPTIONS=""
|
|
@ -0,0 +1,2 @@
|
|||
D /run/samba 0755 - - -
|
||||
d /var/log/samba 0755 - - -
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
|
||||
real 24m15.137s
|
||||
user 21m47.226s
|
||||
sys 2m48.506s
|
||||
|
Loading…
Reference in New Issue