falls von Interesse:
Patches für Sambaserver:
diff -urN orig/configure.ac new/configure.ac
--- orig/configure.ac 2006-09-24 17:20:49.000000000 +0200
+++ new/configure.ac 2006-11-12 10:32:43.000000000 +0100
@@ -112,6 +112,12 @@
AM_CONDITIONAL(ENABLE_NFSSERVER,test "$enable_nfsserver" = "yes")
AC_SUBST(NFSSERVER)
+AC_ARG_ENABLE(sambaserver,
+ AS_HELP_STRING(--enable-sambaserver, enable the dBox samba server),
+ [SAMBASERVER=sambaserver],[enable_sambaserver=no])
+AM_CONDITIONAL(ENABLE_SAMBASERVER,test "$enable_sambaserver" = "yes")
+AC_SUBST(SAMBASERVER)
+
AC_ARG_WITH(rootpartitionsize,
[ --with-rootpartitionsize=SIZE size of the root partition],
[ROOT_PARTITION_SIZE="$withval"],[ROOT_PARTITION_SIZE="0x660000"])
@@ -399,6 +405,7 @@
TUXBOX_RULES_MAKE(udev)
TUXBOX_RULES_MAKE(watchdog)
TUXBOX_RULES_MAKE(mrouted)
+TUXBOX_RULES_MAKE(samba)
TUXBOX_RULES_MAKE(cramfs)
TUXBOX_RULES_MAKE(squashfs)
@@ -556,6 +563,7 @@
update http prefix: $updatehttpprefix
IDE support: $enable_ide
NFS server: $enable_nfsserver
+Samba server: $enable_sambaserver
German keymaps: $enable_german_keymaps
])
diff -urN orig/make/flashroot.mk new/make/flashroot.mk
--- orig/make/flashroot.mk 2006-09-24 17:20:50.000000000 +0200
+++ new/make/flashroot.mk 2006-11-12 10:44:18.000000000 +0100
@@ -50,6 +50,9 @@
if ENABLE_NFSSERVER
$(MAKE) flash-nfsserver
endif
+if ENABLE_SAMBASERVER
+ $(MAKE) flash-sambaserver
+endif
if ENABLE_GERMAN_KEYMAPS
$(MAKE) flash-german-keymaps
endif
diff -urN orig/make/high-level-yadd.mk new/make/high-level-yadd.mk
--- orig/make/high-level-yadd.mk 2006-09-24 17:20:50.000000000 +0200
+++ new/make/high-level-yadd.mk 2006-11-12 10:46:55.000000000 +0100
@@ -18,7 +18,7 @@
endif
@TUXBOX_YADD_CUSTOMIZE@
-yadd-none: bare-os config tuxbox_tools procps ftpd yadd-ucodes automount @LIRC@ @CDKVCINFO@ @NFSSERVER@ @CONSOLE_TOOLS@ version defaultlocale
+yadd-none: bare-os config tuxbox_tools procps ftpd yadd-ucodes automount @LIRC@ @CDKVCINFO@ @NFSSERVER@ @SAMBASERVER@ @CONSOLE_TOOLS@ version defaultlocale
@TUXBOX_YADD_CUSTOMIZE@
yadd-micro-neutrino: bare-os config yadd-ucodes camd2 switch neutrino
diff -urN orig/make/sambaserver.mk new/make/sambaserver.mk
--- orig/make/sambaserver.mk 1970-01-01 01:00:00.000000000 +0100
+++ new/make/sambaserver.mk 2006-11-12 20:41:17.000000000 +0100
@@ -0,0 +1,44 @@
+if ENABLE_SAMBASERVER
+
+sambaserver: samba
+
+$(DEPDIR)/samba: bootstrap @DEPENDS_samba@
+ @PREPARE_samba@
+ cd @DIR_samba@ && \
+ $(INSTALL) -m 644 examples/dbox/smb.conf.dbox $(targetprefix)/etc && \
+ cd source && \
+ $(MAKE) make_smbcodepage CC=$(CC) && \
+ $(INSTALL) -d $(targetprefix)/lib/codepages && \
+ ./make_smbcodepage c 850 codepage_def.850 \
+ $(targetprefix)/lib/codepages/codepage.850 && \
+ $(MAKE) clean && \
+ for i in smbd nmbd smbclient smbmount smbmnt smbpasswd; do \
+ $(MAKE) $$i; \
+ cp $$i $(targetprefix)/bin; \
+

+ @CLEANUP_samba@
+ touch $@
+
+if TARGETRULESET_FLASH
+flash-sambaserver: $(flashprefix)/root/sbin/sambaserver
+
+$(flashprefix)/root/sbin/sambaserver: bootstrap @DEPENDS_samba@ | $(flashprefix)/root
+ @PREPARE_samba@
+ cd @DIR_samba@ && \
+ $(INSTALL) -m 644 examples/dbox/smb.conf.dbox $(flashprefix)/root/etc && \
+ cd source && \
+ $(MAKE) make_smbcodepage CC=$(CC) && \
+ $(INSTALL) -d $(flashprefix)/root/lib/codepages && \
+ ./make_smbcodepage c 850 codepage_def.850 \
+ $(flashprefix)/root/lib/codepages/codepage.850 && \
+ $(MAKE) clean && \
+ for i in smbd nmbd smbpasswd; do \
+ $(MAKE) $$i; \
+ cp $$i $(flashprefix)/root/bin; \
+

+ @CLEANUP_samba@
+ @FLASHROOTDIR_MODIFIED@
+
+endif
+
+endif
diff -urN orig/Makefile.am new/Makefile.am
--- orig/Makefile.am 2006-09-06 20:18:48.000000000 +0200
+++ new/Makefile.am 2006-11-12 11:22:42.000000000 +0100
@@ -19,6 +19,9 @@
# NFS server
include make/nfsserver.mk
+# Samba server
+include make/sambaserver.mk
+
# The busybox (implements most standard Unix commands, like ls,...)
include make/busybox.mk
diff -urN orig/newmake.files new/newmake.files
--- orig/newmake.files 2006-09-16 12:29:50.000000000 +0200
+++ new/newmake.files 2006-11-12 10:33:54.000000000 +0100
@@ -75,6 +75,7 @@
cdk/make/radiobox.mk
cdk/make/reduce-libs.mk
cdk/make/rootutils.mk
+cdk/make/sambaserver.mk
cdk/make/serversupport.mk
cdk/make/tags.mk
cdk/make/tuxbox_libs.mk
diff -urN orig/root/etc/init.d/rcS.m4 new/root/etc/init.d/rcS.m4
--- orig/root/etc/init.d/rcS.m4 2006-09-28 20:23:31.000000000 +0200
+++ new/root/etc/init.d/rcS.m4 2006-11-12 10:38:31.000000000 +0100
@@ -296,6 +296,9 @@
rpc.mountd
rpc.nfsd 3})
+#Start the samba server if /var/etc/.sambaserver and /etc/smbconf exist
+ifmarkerfile({sambaserver},{runprogifexists({/etc/smb.conf},{runifexists({/bin/smbd}); runifexists({/bin/nmbd})})})
+
ifmarkerfile({tuxmaild},{tuxmaild})
ifmarkerfile({tuxcald},{tuxcald})
ifmarkerfile({rdate},{rdate time.fu-berlin.de})
diff -urN orig/root/etc/Makefile.am new/root/etc/Makefile.am
--- orig/root/etc/Makefile.am 2006-10-01 19:49:37.000000000 +0200
+++ new/root/etc/Makefile.am 2006-11-12 10:41:54.000000000 +0100
@@ -2,6 +2,11 @@
EXPORTS=exports
endif
+if ENABLE_SAMBASERVER
+SMBCONF=smb.conf
+SMBPASSWD=smbpasswd
+endif
+
SUBDIRS = init.d network
FILES_FLASH_RO = \
@@ -9,7 +14,8 @@
protocols termcap timezone.xml modules.conf
FILES_FLASH_RW = \
- group hostname hosts inetd.conf passwd profile resolv.conf services auto.net $(EXPORTS)
+ group hostname hosts inetd.conf passwd profile resolv.conf services auto.net \
+ $(EXPORTS) $(SMBCONF) $(SMBPASSWD)
FILES = \
$(FILES_FLASH_RO) $(FILES_FLASH_RW)