wok-next diff samba/receipt @ rev 20095
Update/add packages needed for building MATE desktop:
Add: gnome-keyring3, gtkmm3, libappindicator-gtk[23], libfakekey, libgnome-keyring3, libindicator-gtk[23], libpeas.
Update: atkmm, cairomm, gcr, glibmm, gssdp, gupnp, icon-naming-utils, libcap-ng, libspectre, libwnck3, libxklavier, pangomm, perl-xml-sax.
Add: gnome-keyring3, gtkmm3, libappindicator-gtk[23], libfakekey, libgnome-keyring3, libindicator-gtk[23], libpeas.
Update: atkmm, cairomm, gcr, glibmm, gssdp, gupnp, icon-naming-utils, libcap-ng, libspectre, libwnck3, libxklavier, pangomm, perl-xml-sax.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Oct 28 16:45:22 2017 +0300 (2017-10-28) |
parents | 9b7c1ea86466 |
children | 81ae85517a60 |
line diff
1.1 --- a/samba/receipt Wed Feb 24 23:14:23 2016 +0200 1.2 +++ b/samba/receipt Sat Oct 28 16:45:22 2017 +0300 1.3 @@ -1,68 +1,131 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="samba" 1.8 -VERSION="3.6.7" 1.9 +VERSION="4.6.7" 1.10 CATEGORY="system-tools" 1.11 -SHORT_DESC="File and print services with SMB/CIFS." 1.12 +SHORT_DESC="File and print services with SMB/CIFS" 1.13 MAINTAINER="pascal.bellard@slitaz.org" 1.14 LICENSE="GPL3" 1.15 +WEB_SITE="https://www.samba.org/" 1.16 +BUGS="Open directory needs MIT kerberos support (krb5)" 1.17 +COOKOPTS="!menus" 1.18 + 1.19 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.20 -WEB_SITE="http://samba.org/" 1.21 -WGET_URL="${WEB_SITE}$PACKAGE/ftp/stable/$TARBALL" 1.22 -TAZPANEL_DAEMON="man|edit::/etc/samba/smb.conf|web::$WEB_SITE" 1.23 -SUGGESTED="gamin cups perl" 1.24 -CONFIG_FILES="/etc/samba" 1.25 -BUGS="Open directory needs MIT kerberos support (krb5)" 1.26 +WGET_URL="https://download.samba.org/pub/samba/stable/$TARBALL" 1.27 1.28 -BUILD_DEPENDS="openldap openldap-dev libcomerr-dev cups-dev talloc-dev \ 1.29 -pkg-config libldap krb5" 1.30 -DEPENDS="libldap samba-common glibc-base ncursesw popt zlib cifs-utils acl \ 1.31 -krb5 cups" 1.32 +BUILD_DEPENDS="python-dev perl acl-dev docbook-xsl openldap-dev \ 1.33 +gnutls-dev krb5-dev cyrus-sasl-dev zlib-dev popt-dev libtdb-dev talloc-dev \ 1.34 +libgcrypt-dev nss-dev cups-dev dbus-dev" 1.35 +SPLIT="samba-dev" # TODO: swat 1.36 + 1.37 +version() { 1.38 + wget -O- -q https://download.samba.org/pub/samba/ | \ 1.39 + sed '/LATEST-IS-SAMBA/!d; s|.*SAMBA-\([^<]*\).*|\1|' 1.40 +} 1.41 1.42 # Rules to configure and make the package. 1.43 compile_rules() 1.44 { 1.45 - cd $src/source3 1.46 - ./configure --prefix=/usr --infodir=/usr/share/info \ 1.47 - --with-piddir=/var/run/samba --with-lockdir=/var/run/samba \ 1.48 - --with-winbind --with-ldap --with-fhs --enable-cups --enable-swat \ 1.49 - --enable-shared-libs --enable-external-libtalloc --with-libtdb \ 1.50 - --with-libsmbsharemodes --with-libsmbclient --without-pam \ 1.51 - --sysconfdir=/etc --localstatedir=/var \ 1.52 - --mandir=/usr/share/man $CONFIGURE_ARGS && 1.53 - make -j1 && 1.54 - make -j1 DESTDIR=$DESTDIR install || return 1 1.55 - #rm -f $DESTDIR/usr/*bin/*.old 1.56 - #ln -s libwbclient.so $DESTDIR/usr/lib/libwbclient.so.0 1.57 + # http://www.linuxfromscratch.org/blfs/view/stable/basicnet/samba.html 1.58 + 1.59 + ./configure \ 1.60 + --prefix=/usr \ 1.61 + --sysconfdir=/etc \ 1.62 + --localstatedir=/var \ 1.63 + --with-piddir=/run/samba \ 1.64 + --with-pammodulesdir=/lib/security \ 1.65 + --enable-fhs \ 1.66 + --without-ad-dc \ 1.67 + --without-systemd \ 1.68 + --enable-selftest \ 1.69 + $CONFIGURE_ARGS && 1.70 + make && make install || return 1 1.71 + 1.72 + mkdir -p $install/lib 1.73 + mv $install/usr/lib/libnss_wins.so* $install/usr/lib/libnss_winbind.so* \ 1.74 + $install/lib 1.75 + ln -sf ../../lib/libnss_winbind.so.2 $install/usr/lib/libnss_winbind.so 1.76 + ln -sf ../../lib/libnss_wins.so.2 $install/usr/lib/libnss_wins.so 1.77 + 1.78 + install -m644 examples/smb.conf.default $install/etc/samba 1.79 + 1.80 + mkdir -pv $install/etc/openldap/schema 1.81 + cp examples/LDAP/README $install/etc/openldap/schema/README.LDAP 1.82 + cp examples/LDAP/samba* $install/etc/openldap/schema 1.83 + cp -r examples/LDAP/get* examples/LDAP/ol* $install/etc/openldap/schema 1.84 + 1.85 + cp -a $stuff/etc $install 1.86 + 1.87 + # Symlink smbspool to cups backend 1.88 + mkdir -p $install/usr/lib/cups/backend 1.89 + ln -sf /usr/bin/smbspool $install/usr/lib/cups/backend/smb 1.90 + 1.91 + # for swat package 1.92 +# icodir="$install/usr/share/icons/hicolor/48x48/apps" 1.93 +# mkdir -p $icodir 1.94 +# cp $stuff/swat.png $icodir 1.95 + 1.96 + chown -R root:root $install 1.97 } 1.98 1.99 # Rules to gen a SliTaz package suitable for Tazpkg. 1.100 genpkg_rules() 1.101 { 1.102 - mkdir -p $fs/usr 1.103 - cp -a $install/etc $fs 1.104 - cp -a $install/var $fs 1.105 - cp -a $install/usr/lib $fs/usr 1.106 - cp -a $install/usr/sbin $fs/usr 1.107 - cp -a $install/usr/bin $fs/usr 1.108 - cp -a $stuff/etc $fs 1.109 - cat $stuff/*.files-list | while read file; do 1.110 - rm -rf $fs$file 1.111 - done 1.112 + # Note, packages samba-common, smbclient was removed due to circular dependencies: 1.113 + # smbclient <--> samba <--> samba-common 1.114 + case $PACKAGE in 1.115 +# smbclient) 1.116 +# copy smbclient smbspool smbget smbtree smbcacls smbcquotas smbtar \ 1.117 +# rpcclient net nmblookup libnetapi.so* libsmbclient.so* smb 1.118 +# CAT="network|client" 1.119 +# DEPENDS="samba libldap libtdb popt talloc" 1.120 +# ;; 1.121 +# swat) 1.122 +# copy swat/ swat.desktop swat.png 1.123 +# CAT="development|Samba Web Administration Tool" 1.124 +# DEPENDS="samba" 1.125 +# ;; 1.126 + samba) 1.127 + copy @std 1.128 +# remove_already_packed 1.129 + DEPENDS="acl attr dbus libcups libgnutls libldap libtdb ncurses \ 1.130 + ncurses-libform ncurses-libpanel perl popt python talloc \ 1.131 + talloc-python zlib" 1.132 + PROVIDE="samba-common smbclient" 1.133 + TAZPANEL_DAEMON="man|edit::/etc/samba/smb.conf|web::$WEB_SITE" 1.134 + CONFIG_FILES="/etc/samba/smb.conf" 1.135 + ;; 1.136 + *-dev) 1.137 + copy @dev 1.138 + DEPENDS="samba talloc-dev" 1.139 + ;; 1.140 + esac 1.141 } 1.142 1.143 # Pre and post install commands for Tazpkg. 1.144 -post_install() 1.145 -{ 1.146 - cat <<EOF 1.147 ----- 1.148 -The main configuration file is /etc/samba/smb.conf 1.149 ----- 1.150 -To start $PACKAGE server you can run : 1.151 +post_install_samba() { 1.152 + [ -n "$quiet" ] || cat <<EOT 1.153 1.154 - /etc/init.d/$PACKAGE start 1.155 + .----------------------------------------------------. 1.156 + | The main configuration file is /etc/samba/smb.conf | 1.157 + |----------------------------------------------------| 1.158 + | To start samba server you can run: | 1.159 + | /etc/init.d/samba start | 1.160 + | | 1.161 + | Or add samba to RUN_DAEMONS in /etc/rcS.conf | 1.162 + '----------------------------------------------------' 1.163 +EOT 1.164 +} 1.165 1.166 -Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf 1.167 ----- 1.168 -EOF 1.169 +post_install_swat() { 1.170 + [ -f "$1/etc/lighttpd/lighttpd.conf" ] || return 1.171 + 1.172 + [ ! grep -q /usr/share/samba/swat/ "$1/etc/lighttpd/lighttpd.conf" ] || return 1.173 + 1.174 + sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/swat/" => "/usr/share/samba/swat/",|g' -i "$1/etc/lighttpd/lighttpd.conf" 1.175 + 1.176 + [ -z "$1" ] || return 1.177 + # Start Web server. 1.178 + /etc/init.d/lighttpd stop 1.179 + /etc/init.d/lighttpd start 1.180 }