Lines 21-26
Link Here
|
21 |
USE_GMAKE= YES |
21 |
USE_GMAKE= YES |
22 |
USE_LIBTOOL= YES |
22 |
USE_LIBTOOL= YES |
23 |
USE_AUTOCONF= YES |
23 |
USE_AUTOCONF= YES |
|
|
24 |
USE_RC_SUBR= YES |
24 |
|
25 |
|
25 |
# directories |
26 |
# directories |
26 |
.if !defined(BATCH) && !defined(PACKAGE_BUILDING) |
27 |
.if !defined(BATCH) && !defined(PACKAGE_BUILDING) |
Lines 66-74
Link Here
|
66 |
SAMBA_VFSDIR?= ${PREFIX}/lib/samba |
67 |
SAMBA_VFSDIR?= ${PREFIX}/lib/samba |
67 |
|
68 |
|
68 |
# sample files |
69 |
# sample files |
69 |
STARTUP_SCRIPT= ${PREFIX}/etc/rc.d/samba.sh.sample |
|
|
70 |
SAMPLE_CONFIG= ${SAMBA_CONFDIR}/smb.conf.default |
70 |
SAMPLE_CONFIG= ${SAMBA_CONFDIR}/smb.conf.default |
71 |
|
71 |
|
|
|
72 |
# Startup Scripts |
73 |
SMBD_SCRIPT= ${PREFIX}/etc/rc.d/900smbd.sh |
74 |
NMBD_SCRIPT= ${PREFIX}/etc/rc.d/901nmbd.sh |
75 |
|
76 |
# Change to the following when rcorder is used on ${prefix}/etc/rc.d also. |
77 |
# SMBD_SCRIPT= ${PREFIX}/etc/rc.d/smbd.sh |
78 |
# NMBD_SCRIPT= ${PREFIX}/etc/rc.d/nmbd.sh |
79 |
|
72 |
CONFIGURE_ARGS= --libdir=${SAMBA_CONFDIR} \ |
80 |
CONFIGURE_ARGS= --libdir=${SAMBA_CONFDIR} \ |
73 |
--localstatedir=${VARDIR} --with-swatdir=${PREFIX}/share/swat \ |
81 |
--localstatedir=${VARDIR} --with-swatdir=${PREFIX}/share/swat \ |
74 |
--with-sambabook=${PREFIX}/share/swat/using_samba \ |
82 |
--with-sambabook=${PREFIX}/share/swat/using_samba \ |
Lines 184-200
Link Here
|
184 |
WINBIND_NSS=${WINBIND_NSS} \ |
192 |
WINBIND_NSS=${WINBIND_NSS} \ |
185 |
WINBIND_AUTH_CHALLENGE=${WINBIND_AUTH_CHALLENGE} |
193 |
WINBIND_AUTH_CHALLENGE=${WINBIND_AUTH_CHALLENGE} |
186 |
|
194 |
|
187 |
.if defined(WITH_RECYCLE) || defined(WITH_AUDIT) |
195 |
RC_SCRIPTS_SUB= PREFIX=${PREFIX} \ |
188 |
post-build: |
196 |
RC_SUBR=${RC_SUBR} \ |
189 |
cd ${WRKDIR}/${DISTNAME}/examples/VFS; \ |
197 |
SAMBA_CONFDIR=${SAMBA_CONFDIR} |
190 |
./configure;${GMAKE}; \ |
|
|
191 |
${RM} -f config.cache config.log config.status |
192 |
.endif |
193 |
|
198 |
|
194 |
pre-build: |
199 |
pre-build: |
195 |
${RM} -fr ${WRKSRC}/include/proto.h |
200 |
${RM} -fr ${WRKSRC}/include/proto.h |
196 |
(cd ${WRKSRC} && make proto) |
201 |
(cd ${WRKSRC} && make proto) |
197 |
|
202 |
|
|
|
203 |
post-build: |
204 |
.if defined(WITH_RECYCLE) || defined(WITH_AUDIT) |
205 |
cd ${WRKDIR}/${DISTNAME}/examples/VFS; \ |
206 |
LIBTOOL=${LIBTOOL} ./configure;${GMAKE}; \ |
207 |
${RM} -f config.cache config.log config.status |
208 |
.endif |
209 |
.for script in nmbd.sh smbd.sh |
210 |
@${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ |
211 |
${FILESDIR}/${script} > ${WRKDIR}/${script} |
212 |
.endfor |
213 |
|
198 |
post-install: |
214 |
post-install: |
199 |
.if defined(WITH_WINBIND_NSS) |
215 |
.if defined(WITH_WINBIND_NSS) |
200 |
${INSTALL_PROGRAM} ${WRKSRC}/nsswitch/libnss_winbind.so ${PREFIX}/lib/nss_winbind.so.1 |
216 |
${INSTALL_PROGRAM} ${WRKSRC}/nsswitch/libnss_winbind.so ${PREFIX}/lib/nss_winbind.so.1 |
Lines 220-230
Link Here
|
220 |
${RM} ${PREFIX}/share/examples/samba/VFS/$${file} ; \ |
236 |
${RM} ${PREFIX}/share/examples/samba/VFS/$${file} ; \ |
221 |
done |
237 |
done |
222 |
.endif |
238 |
.endif |
223 |
@if [ ! -f ${STARTUP_SCRIPT} ]; then \ |
239 |
${INSTALL_SCRIPT} ${WRKDIR}/smbd.sh ${SMBD_SCRIPT} |
224 |
${ECHO} "Installing ${STARTUP_SCRIPT} startup file." ; \ |
240 |
${INSTALL_SCRIPT} ${WRKDIR}/nmbd.sh ${NMBD_SCRIPT} |
225 |
${INSTALL_SCRIPT} ${FILESDIR}/samba.sh.sample \ |
|
|
226 |
${STARTUP_SCRIPT} ; \ |
227 |
fi |
228 |
@test -d ${SAMBA_SPOOL} || ${MKDIR} ${SAMBA_SPOOL} && ${CHMOD} 1777 ${SAMBA_SPOOL} |
241 |
@test -d ${SAMBA_SPOOL} || ${MKDIR} ${SAMBA_SPOOL} && ${CHMOD} 1777 ${SAMBA_SPOOL} |
229 |
@if [ ! -f ${SAMPLE_CONFIG} ]; then \ |
242 |
@if [ ! -f ${SAMPLE_CONFIG} ]; then \ |
230 |
${SED} -e 's!%%SAMBA_SPOOL%%!${SAMBA_SPOOL}!' \ |
243 |
${SED} -e 's!%%SAMBA_SPOOL%%!${SAMBA_SPOOL}!' \ |