30 |
|
|
31 |
sminclude mtools |
sminclude mtools |
32 |
|
|
33 |
SMBD_SVC_VER=1.2 |
SMBD_SVC_VER=1.3 |
34 |
|
NMBD_SVC_VER=1.2 |
35 |
|
|
36 |
SRC_URI=( |
SRC_URI=( |
37 |
http://us1.samba.org/samba/ftp/stable/${SRCFILE} |
http://us1.samba.org/samba/ftp/stable/${SRCFILE} |
39 |
mirror://${PNAME}/smb.conf-3.0.14a |
mirror://${PNAME}/smb.conf-3.0.14a |
40 |
mirror://${PNAME}/lmhosts |
mirror://${PNAME}/lmhosts |
41 |
mirror://${PNAME}/smbusers |
mirror://${PNAME}/smbusers |
42 |
mirror://${PNAME}/samba.rc |
mirror://${PNAME}/samba.confd |
43 |
mirror://${PNAME}/nmbd.service |
mirror://${PNAME}/samba.logrotate |
44 |
|
mirror://${PNAME}/nmbd.service-${NMBD_SVC_VER} |
45 |
mirror://${PNAME}/smbd.service-${SMBD_SVC_VER} |
mirror://${PNAME}/smbd.service-${SMBD_SVC_VER} |
46 |
|
mirror://${PNAME}/winbindd.service |
47 |
) |
) |
48 |
|
|
49 |
UP2DATE="updatecmd http://ftp.samba.org/pub/samba | grep ${PNAME}-[0-9].* | lasttarball gz" |
UP2DATE="updatecmd http://ftp.samba.org/pub/samba | grep ${PNAME}-[0-9].* | lasttarball gz" |
72 |
|
|
73 |
# remove swat completely now; since we have no httpd server yet |
# remove swat completely now; since we have no httpd server yet |
74 |
# if really needed we make an extra package to save diskspace |
# if really needed we make an extra package to save diskspace |
|
# --disable-swat option is there, no patches needed anymore ;) |
|
75 |
mconfigure \ |
mconfigure \ |
76 |
--with-fhs \ |
--with-fhs \ |
77 |
--sysconfdir=/etc/samba \ |
--sysconfdir=/etc/samba \ |
190 |
minstalletc lmhosts lmhosts /etc/samba || die |
minstalletc lmhosts lmhosts /etc/samba || die |
191 |
minstalletc smbusers smbusers /etc/samba || die |
minstalletc smbusers smbusers /etc/samba || die |
192 |
|
|
|
# our initscript |
|
|
minstallrc samba.rc samba || die |
|
|
|
|
193 |
# install systemd units |
# install systemd units |
194 |
minstallunit nmbd.service || die |
minstallconf samba.confd samba || die |
195 |
|
minstallunit nmbd.service-${NMBD_SVC_VER} nmbd.service || die |
196 |
minstallunit smbd.service-${SMBD_SVC_VER} smbd.service || die |
minstallunit smbd.service-${SMBD_SVC_VER} smbd.service || die |
197 |
|
minstallunit winbindd.service || die |
198 |
|
|
199 |
|
# install logrotate config |
200 |
|
minstalllog samba.logrotate samba || die |
201 |
|
|
202 |
# # install example docs - not wanted anymore to save some space |
# # install example docs - not wanted anymore to save some space |
203 |
# cp -a ${SRCDIR}/examples/* ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/examples || die |
# cp -a ${SRCDIR}/examples/* ${BINDIR}/usr/share/doc/${PNAME}-${PVER}/examples || die |