Revisão | 423afc31a58c6011936868bd1f097e7e858706a5 (tree) |
---|---|
Hora | 2022-06-10 19:26:34 |
Autor | matsuand <30614168+matsuand@user...> |
Commiter | matsuand |
[BLFS] Update samba-4.16.1.
@@ -3,7 +3,7 @@ | ||
3 | 3 | . ./_blfsset.sh |
4 | 4 | |
5 | 5 | APPNAME=samba |
6 | -VER=4.16.0 | |
6 | +VER=4.16.1 | |
7 | 7 | TARGET=$APPNAME-$VER |
8 | 8 | TARGETBALL=$DLD/$TARGET.tar.gz |
9 | 9 | TARGETDIR=$TARGET |
@@ -29,23 +29,24 @@ TimeStart | ||
29 | 29 | |
30 | 30 | cd $TARGETDIR |
31 | 31 | |
32 | -sed -r 's/nss_(setpw|endpw|setgr|endgr)ent/my_&/' \ | |
33 | - -i nsswitch/nsstest.c | |
34 | - | |
35 | -# --enable-nss-wrapper \ | |
32 | +python3 -m venv pyvenv && | |
33 | +./pyvenv/bin/pip3 install cryptography pyasn1 iso8601 | |
36 | 34 | |
37 | 35 | echo "^samba4.rpc.echo.*on.*ncacn_np.*with.*object.*nt4_dc" >> selftest/knownfail |
38 | 36 | |
39 | 37 | Configuring |
40 | -CFLAGS="-I/usr/include/tirpc" \ | |
41 | -LDFLAGS="-ltirpc" \ | |
42 | -./configure \ | |
43 | - --prefix=/usr \ | |
44 | - --sysconfdir=/etc \ | |
45 | - --localstatedir=/var \ | |
46 | - --with-piddir=/run/samba \ | |
47 | - --with-pammodulesdir=/lib/security \ | |
48 | - --enable-fhs \ | |
38 | +PYTHON=$PWD/pyvenv/bin/python3 \ | |
39 | +CPPFLAGS="-I/usr/include/tirpc" \ | |
40 | +LDFLAGS="-ltirpc" \ | |
41 | +./configure \ | |
42 | + --prefix=/usr \ | |
43 | + --sysconfdir=/etc \ | |
44 | + --localstatedir=/var \ | |
45 | + --with-piddir=/run/samba \ | |
46 | + --with-pammodulesdir=/usr/lib/security \ | |
47 | + --enable-fhs \ | |
48 | + --without-ad-dc \ | |
49 | + --enable-selftest \ | |
49 | 50 | $([ ${OPTION_LinuxPAM} -ne 1 ] && echo --without-pam) \ |
50 | 51 | $([ ${OPTION_openldap} -ne 1 ] && echo --without-ads --without-ad-dc --without-ldap) \ |
51 | 52 | $([ ${OPTION_gpgme} -ne 1 ] && echo --without-gpgme --without-ad-dc) \ |
@@ -65,20 +66,12 @@ make install" \ | ||
65 | 66 | 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1 |
66 | 67 | |
67 | 68 | porg -lp+ $TARGET "\ |
68 | -mv -v /usr/lib/libnss_win{s,bind}.so* /lib" \ | |
69 | - 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
70 | - | |
71 | -porg -lp+ $TARGET "\ | |
72 | -ln -v -sf ../../lib/libnss_winbind.so.2 /usr/lib/libnss_winbind.so" \ | |
73 | - 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
74 | - | |
75 | -porg -lp+ $TARGET "\ | |
76 | -ln -v -sf ../../lib/libnss_wins.so.2 /usr/lib/libnss_wins.so" \ | |
77 | - 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 | |
78 | - | |
79 | -porg -lp+ $TARGET "\ | |
80 | 69 | install -v -m644 examples/smb.conf.default /etc/samba" \ |
81 | 70 | 1>> $LOG/$TARGET.3_install.log 2>&1 || exit 1 |
71 | +sed -e "s;log file =.*;log file = /var/log/samba/%m.log;" \ | |
72 | + -e "s;path = /usr/spool/samba;path = /var/spool/samba;" \ | |
73 | + -i /etc/samba/smb.conf.defaul | |
74 | + | |
82 | 75 | sed -e "s/MYGROUP/WORKGROUP/" \ |
83 | 76 | -e "s/writable = yes/writable = yes\n create mask = 0644\n directory mask = 0755/" /etc/samba/smb.conf.default > /etc/samba/smb.conf |
84 | 77 | sed -i -e '/log file =/s/\/usr\/local\/samba\/var\/log/\/var\/log\/samba/' \ |