23 |
|
|
24 |
FILESDIR="${SOURCEDIR}/samba" |
FILESDIR="${SOURCEDIR}/samba" |
25 |
|
|
26 |
|
ALX_ONLY_KEEP="etc/samba/smb.conf etc/rc.d/init.d/nmbd usr/bin/net usr/sbin/nmbd usr/$(mlibdir) var/run/samba var/cache/samba var/lib/samba" |
27 |
REMOVE_DEPRECATED_MAGE_TARGETS=1 |
REMOVE_DEPRECATED_MAGE_TARGETS=1 |
28 |
sminclude mtools alx |
sminclude mtools alx-split |
29 |
|
|
30 |
SRC_URI=( |
SRC_URI=( |
31 |
http://us1.samba.org/samba/ftp/stable/${SRCFILE} |
http://us1.samba.org/samba/ftp/stable/${SRCFILE} |
32 |
mirror://${PNAME}/${SRCFILE} |
mirror://${PNAME}/${SRCFILE} |
|
mirror://${PNAME}/samba.rc |
|
33 |
) |
) |
34 |
|
|
35 |
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" |
99 |
{ |
{ |
100 |
cd ${SRCDIR}/source3 |
cd ${SRCDIR}/source3 |
101 |
|
|
|
# needed directories |
|
|
minstalldir /sbin || die |
|
|
|
|
102 |
# needed directories by samba at runtime |
# needed directories by samba at runtime |
103 |
mkeepdir /var/run/samba || die |
mkeepdir /var/run/samba || die |
104 |
|
mkeepdir /var/lib/samba || die |
105 |
mkeepdir /var/cache/samba || die |
mkeepdir /var/cache/samba || die |
106 |
|
|
107 |
make DESTDIR=${BINDIR} install-everything || die |
make DESTDIR=${BINDIR} install-everything || die |
117 |
|
|
118 |
# our initscript |
# our initscript |
119 |
minstalldir /etc/rc.d/init.d/|| die |
minstalldir /etc/rc.d/init.d/|| die |
120 |
mcinstallexec nmbd.rc /etc/rc.d/init.d/nmbd || die |
mcinjectexec nmbd.rc /etc/rc.d/init.d/nmbd || die |
121 |
|
|
122 |
|
# create a mininmal configuration to get nmbd working |
123 |
|
echo '[global]' > /etc/samba/smb.conf || die |
124 |
|
echo 'workgroup = WORKGROUP' > /etc/samba/smb.conf || die |
125 |
|
|
126 |
# other docs |
# other docs |
127 |
cd ${SRCDIR} |
cd ${SRCDIR} |