diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-05-16 09:56:39 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-05-16 09:56:39 +0100 |
commit | 6cce850bcb3e87ef04ed9bacd52bf1bf63e557d8 (patch) | |
tree | 81ed760a1be1be66517241aed227b0f5f31ae6a0 | |
parent | cd5fa1ee4e3f8fdeb620487d8dc5e4c8ca9da15f (diff) | |
download | poky-6cce850bcb3e87ef04ed9bacd52bf1bf63e557d8.tar.gz |
samba: Add from OE but split libtdb out into its own package
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
-rw-r--r-- | meta-moblin/packages/samba/files/config-h.patch | 12 | ||||
-rw-r--r-- | meta-moblin/packages/samba/files/config-lfs.patch | 47 | ||||
-rw-r--r-- | meta-moblin/packages/samba/files/configure-3.3.0.patch | 87 | ||||
-rw-r--r-- | meta-moblin/packages/samba/files/configure.patch | 179 | ||||
-rw-r--r-- | meta-moblin/packages/samba/files/init | 58 | ||||
-rw-r--r-- | meta-moblin/packages/samba/files/mtab.patch | 11 | ||||
-rw-r--r-- | meta-moblin/packages/samba/files/quota.patch | 11 | ||||
-rw-r--r-- | meta-moblin/packages/samba/files/smb.conf | 266 | ||||
-rw-r--r-- | meta-moblin/packages/samba/files/tdb.pc | 11 | ||||
-rw-r--r-- | meta-moblin/packages/samba/files/volatiles.03_samba | 2 | ||||
-rw-r--r-- | meta-moblin/packages/samba/samba-basic.inc | 25 | ||||
-rw-r--r-- | meta-moblin/packages/samba/samba.inc | 92 | ||||
-rw-r--r-- | meta-moblin/packages/samba/samba_3.3.0.bb | 35 |
13 files changed, 836 insertions, 0 deletions
diff --git a/meta-moblin/packages/samba/files/config-h.patch b/meta-moblin/packages/samba/files/config-h.patch new file mode 100644 index 0000000000..eeb22684ee --- /dev/null +++ b/meta-moblin/packages/samba/files/config-h.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | diff -urN source.old//include/config.h.in source//include/config.h.in | ||
2 | --- source.old//include/config.h.in 2008-11-20 14:45:04.000000000 +0000 | ||
3 | +++ source//include/config.h.in 2008-11-30 21:04:17.990008933 +0000 | ||
4 | @@ -2672,7 +2672,7 @@ | ||
5 | #undef USE_SETEUID | ||
6 | |||
7 | /* Whether setresuid() is available */ | ||
8 | -#undef USE_SETRESUID | ||
9 | +#define USE_SETRESUID 1 | ||
10 | |||
11 | /* Whether setreuid() is available */ | ||
12 | #undef USE_SETREUID | ||
diff --git a/meta-moblin/packages/samba/files/config-lfs.patch b/meta-moblin/packages/samba/files/config-lfs.patch new file mode 100644 index 0000000000..b37ed690ce --- /dev/null +++ b/meta-moblin/packages/samba/files/config-lfs.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | Cache the check for Linux LFS support, so it can be prepopulated from | ||
2 | the site cache for configure variables for cross-compiling. Without this, | ||
3 | samba gets the idea that it can use dirent64 and friends without defining | ||
4 | the flags it needs to get it, such as _GNU_SOURCE and _LARGEFILE64_SOURCE. | ||
5 | |||
6 | Symptoms of getting the configuration wrong on cross-compile inculde | ||
7 | warnings such as | ||
8 | |||
9 | smbd/trans2.c: In function `get_lanman2_dir_entry': | ||
10 | smbd/trans2.c:1065: warning: right shift count >= width of type | ||
11 | |||
12 | and errors like | ||
13 | |||
14 | smbd/vfs.c:630: error: dereferencing pointer to incomplete type | ||
15 | |||
16 | (when trying to dereference dirent64.) | ||
17 | |||
18 | --- source/configure.in.orig 2005-05-29 14:46:18.000000000 -0700 | ||
19 | +++ source/configure.in 2005-05-29 14:51:57.000000000 -0700 | ||
20 | @@ -588,7 +588,7 @@ | ||
21 | # Tests for linux LFS support. Need kernel 2.4 and glibc2.2 or greater support. | ||
22 | # | ||
23 | *linux*) | ||
24 | - AC_MSG_CHECKING([for LFS support]) | ||
25 | + AC_CACHE_CHECK([for LFS support], samba_cv_LINUX_LFS_SUPPORT,[ | ||
26 | old_CPPFLAGS="$CPPFLAGS" | ||
27 | CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS" | ||
28 | AC_TRY_RUN([ | ||
29 | @@ -627,15 +627,14 @@ | ||
30 | exit(1); | ||
31 | #endif | ||
32 | } | ||
33 | -], [LINUX_LFS_SUPPORT=yes], [LINUX_LFS_SUPPORT=no], [LINUX_LFS_SUPPORT=cross]) | ||
34 | - CPPFLAGS="$old_CPPFLAGS" | ||
35 | - if test x$LINUX_LFS_SUPPORT = xyes ; then | ||
36 | +], [samba_cv_LINUX_LFS_SUPPORT=yes], [samba_cv_LINUX_LFS_SUPPORT=no], [samba_cv_LINUX_LFS_SUPPORT=cross]) | ||
37 | + CPPFLAGS="$old_CPPFLAGS"]) | ||
38 | + if test x"$samba_cv_LINUX_LFS_SUPPORT" = x"yes" ; then | ||
39 | CPPFLAGS="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE $CPPFLAGS" | ||
40 | AC_DEFINE(_LARGEFILE64_SOURCE, 1, [Whether to enable large file support]) | ||
41 | AC_DEFINE(_FILE_OFFSET_BITS, 64, [File offset bits]) | ||
42 | AC_DEFINE(_GNU_SOURCE, 1, [Whether to use GNU libc extensions]) | ||
43 | fi | ||
44 | - AC_MSG_RESULT([$LINUX_LFS_SUPPORT]) | ||
45 | ;; | ||
46 | |||
47 | # | ||
diff --git a/meta-moblin/packages/samba/files/configure-3.3.0.patch b/meta-moblin/packages/samba/files/configure-3.3.0.patch new file mode 100644 index 0000000000..a2e2544802 --- /dev/null +++ b/meta-moblin/packages/samba/files/configure-3.3.0.patch | |||
@@ -0,0 +1,87 @@ | |||
1 | Index: source/configure | ||
2 | =================================================================== | ||
3 | --- source.orig/configure 2009-01-27 07:53:11.000000000 +0000 | ||
4 | +++ source/configure 2009-05-15 12:51:02.000000000 +0100 | ||
5 | @@ -43860,13 +43860,7 @@ | ||
6 | *linux*) | ||
7 | # glibc <= 2.3.2 has a broken getgrouplist | ||
8 | if test "$cross_compiling" = yes; then | ||
9 | - { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | ||
10 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | ||
11 | -{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling | ||
12 | -See \`config.log' for more details." >&5 | ||
13 | -$as_echo "$as_me: error: cannot run test program while cross compiling | ||
14 | -See \`config.log' for more details." >&2;} | ||
15 | - { (exit 1); exit 1; }; }; } | ||
16 | +linux_getgrouplist_ok=no | ||
17 | else | ||
18 | cat >conftest.$ac_ext <<_ACEOF | ||
19 | /* confdefs.h. */ | ||
20 | Index: source/configure.in | ||
21 | =================================================================== | ||
22 | --- source.orig/configure.in 2009-05-15 12:51:01.000000000 +0100 | ||
23 | +++ source/configure.in 2009-05-15 13:02:22.000000000 +0100 | ||
24 | @@ -280,6 +280,8 @@ | ||
25 | fi | ||
26 | AC_SUBST(BROKEN_CC) | ||
27 | |||
28 | +AC_TRY_COMPILE([],[(void)sizeof(char[-1])],AC_MSG_ERROR([configure's compilation assert doesn't work with $CC])) | ||
29 | + | ||
30 | dnl Check if the C compiler understands -Werror | ||
31 | AC_CACHE_CHECK([that the C compiler understands -Werror],samba_cv_HAVE_Werror, [ | ||
32 | AC_TRY_RUN_STRICT([ | ||
33 | @@ -330,25 +332,11 @@ | ||
34 | # a runtime test is needed here | ||
35 | AC_SUBST(PIDL_ARGS) | ||
36 | AC_CACHE_CHECK([that the C compiler understands negative enum values],samba_cv_CC_NEGATIVE_ENUM_VALUES, [ | ||
37 | - AC_TRY_RUN( | ||
38 | + AC_TRY_COMPILE([], | ||
39 | [ | ||
40 | - #include <stdio.h> | ||
41 | enum negative_values { NEGATIVE_VALUE = 0xFFFFFFFF }; | ||
42 | - int main(void) { | ||
43 | - enum negative_values v1 = NEGATIVE_VALUE; | ||
44 | - unsigned v2 = NEGATIVE_VALUE; | ||
45 | - | ||
46 | - if (v1 != 0xFFFFFFFF) { | ||
47 | - printf("%u != 0xFFFFFFFF\n", v1); | ||
48 | - return 1; | ||
49 | - } | ||
50 | - if (v2 != 0xFFFFFFFF) { | ||
51 | - printf("%u != 0xFFFFFFFF\n", v2); | ||
52 | - return 1; | ||
53 | - } | ||
54 | - | ||
55 | - return 0; | ||
56 | - } | ||
57 | + (void)sizeof(char[1-2*( (unsigned)NEGATIVE_VALUE != 0xFFFFFFFF)]); | ||
58 | + (void)sizeof(char[1-2*((enum negative_values)NEGATIVE_VALUE != 0xFFFFFFFF)]); | ||
59 | ], | ||
60 | samba_cv_CC_NEGATIVE_ENUM_VALUES=yes,samba_cv__CC_NEGATIVE_ENUM_VALUES=no)]) | ||
61 | if test x"$samba_cv_CC_NEGATIVE_ENUM_VALUES" != x"yes"; then | ||
62 | @@ -1223,22 +1211,12 @@ | ||
63 | case "$host_os" in | ||
64 | *linux*) | ||
65 | # glibc <= 2.3.2 has a broken getgrouplist | ||
66 | - AC_TRY_RUN([ | ||
67 | -#include <unistd.h> | ||
68 | + AC_TRY_COMPILE([ | ||
69 | #include <sys/utsname.h> | ||
70 | -main() { | ||
71 | - /* glibc up to 2.3 has a broken getgrouplist */ | ||
72 | +],[ | ||
73 | #if defined(__GLIBC__) && defined(__GLIBC_MINOR__) | ||
74 | - int libc_major = __GLIBC__; | ||
75 | - int libc_minor = __GLIBC_MINOR__; | ||
76 | - | ||
77 | - if (libc_major < 2) | ||
78 | - exit(1); | ||
79 | - if ((libc_major == 2) && (libc_minor <= 3)) | ||
80 | - exit(1); | ||
81 | + (void)sizeof(char[1-2*(__GLIBC__ < 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ <= 3)]); | ||
82 | #endif | ||
83 | - exit(0); | ||
84 | -} | ||
85 | ], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no]) | ||
86 | if test x"$linux_getgrouplist_ok" = x"yes"; then | ||
87 | AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist]) | ||
diff --git a/meta-moblin/packages/samba/files/configure.patch b/meta-moblin/packages/samba/files/configure.patch new file mode 100644 index 0000000000..b7ba287795 --- /dev/null +++ b/meta-moblin/packages/samba/files/configure.patch | |||
@@ -0,0 +1,179 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | ||
4 | # | ||
5 | |||
6 | --- source/configure.in~configure 2003-12-14 22:36:25.000000000 -0500 | ||
7 | +++ source/configure.in 2004-01-26 14:33:15.000000000 -0500 | ||
8 | @@ -959,7 +959,7 @@ | ||
9 | #endif | ||
10 | exit(0); | ||
11 | } | ||
12 | -], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no]) | ||
13 | +], [linux_getgrouplist_ok=yes], [linux_getgrouplist_ok=no], [linux_getgrouplist_ok=cross]) | ||
14 | if test x"$linux_getgrouplist_ok" = x"yes"; then | ||
15 | AC_DEFINE(HAVE_GETGROUPLIST, 1, [Have good getgrouplist]) | ||
16 | fi | ||
17 | --- source/aclocal.m4~configure 2004-01-26 14:33:15.000000000 -0500 | ||
18 | +++ source/aclocal.m4 2004-01-26 17:34:28.000000000 -0500 | ||
19 | @@ -2,7 +2,7 @@ | ||
20 | dnl if the cache file is inconsistent with the current host, | ||
21 | dnl target and build system types, execute CMD or print a default | ||
22 | dnl error message. | ||
23 | -AC_DEFUN(AC_VALIDATE_CACHE_SYSTEM_TYPE, [ | ||
24 | +AC_DEFUN([AC_VALIDATE_CACHE_SYSTEM_TYPE], [ | ||
25 | AC_REQUIRE([AC_CANONICAL_SYSTEM]) | ||
26 | AC_MSG_CHECKING([config.cache system type]) | ||
27 | if { test x"${ac_cv_host_system_type+set}" = x"set" && | ||
28 | @@ -24,7 +24,7 @@ | ||
29 | |||
30 | |||
31 | dnl test whether dirent has a d_off member | ||
32 | -AC_DEFUN(AC_DIRENT_D_OFF, | ||
33 | +AC_DEFUN([AC_DIRENT_D_OFF], | ||
34 | [AC_CACHE_CHECK([for d_off in dirent], ac_cv_dirent_d_off, | ||
35 | [AC_TRY_COMPILE([ | ||
36 | #include <unistd.h> | ||
37 | @@ -38,7 +38,7 @@ | ||
38 | |||
39 | dnl Mark specified module as shared | ||
40 | dnl SMB_MODULE(name,static_files,shared_files,subsystem,whatif-static,whatif-shared) | ||
41 | -AC_DEFUN(SMB_MODULE, | ||
42 | +AC_DEFUN([SMB_MODULE], | ||
43 | [ | ||
44 | AC_MSG_CHECKING([how to build $1]) | ||
45 | if test "$[MODULE_][$1]"; then | ||
46 | @@ -68,7 +68,7 @@ | ||
47 | fi | ||
48 | ]) | ||
49 | |||
50 | -AC_DEFUN(SMB_SUBSYSTEM, | ||
51 | +AC_DEFUN([SMB_SUBSYSTEM], | ||
52 | [ | ||
53 | AC_SUBST($1_STATIC) | ||
54 | AC_SUBST($1_MODULES) | ||
55 | @@ -77,7 +77,7 @@ | ||
56 | ]) | ||
57 | |||
58 | dnl AC_PROG_CC_FLAG(flag) | ||
59 | -AC_DEFUN(AC_PROG_CC_FLAG, | ||
60 | +AC_DEFUN([AC_PROG_CC_FLAG], | ||
61 | [AC_CACHE_CHECK(whether ${CC-cc} accepts -$1, ac_cv_prog_cc_$1, | ||
62 | [echo 'void f(){}' > conftest.c | ||
63 | if test -z "`${CC-cc} -$1 -c conftest.c 2>&1`"; then | ||
64 | @@ -91,7 +91,7 @@ | ||
65 | dnl see if a declaration exists for a function or variable | ||
66 | dnl defines HAVE_function_DECL if it exists | ||
67 | dnl AC_HAVE_DECL(var, includes) | ||
68 | -AC_DEFUN(AC_HAVE_DECL, | ||
69 | +AC_DEFUN([AC_HAVE_DECL], | ||
70 | [ | ||
71 | AC_CACHE_CHECK([for $1 declaration],ac_cv_have_$1_decl,[ | ||
72 | AC_TRY_COMPILE([$2],[int i = (int)$1], | ||
73 | @@ -105,7 +105,7 @@ | ||
74 | dnl check for a function in a library, but don't | ||
75 | dnl keep adding the same library to the LIBS variable. | ||
76 | dnl AC_LIBTESTFUNC(lib,func) | ||
77 | -AC_DEFUN(AC_LIBTESTFUNC, | ||
78 | +AC_DEFUN([AC_LIBTESTFUNC], | ||
79 | [case "$LIBS" in | ||
80 | *-l$1*) AC_CHECK_FUNCS($2) ;; | ||
81 | *) AC_CHECK_LIB($1, $2) | ||
82 | @@ -223,7 +223,7 @@ | ||
83 | |||
84 | dnl Define an AC_DEFINE with ifndef guard. | ||
85 | dnl AC_N_DEFINE(VARIABLE [, VALUE]) | ||
86 | -define(AC_N_DEFINE, | ||
87 | +define([AC_N_DEFINE], | ||
88 | [cat >> confdefs.h <<\EOF | ||
89 | [#ifndef] $1 | ||
90 | [#define] $1 ifelse($#, 2, [$2], $#, 3, [$2], 1) | ||
91 | @@ -233,14 +233,14 @@ | ||
92 | |||
93 | dnl Add an #include | ||
94 | dnl AC_ADD_INCLUDE(VARIABLE) | ||
95 | -define(AC_ADD_INCLUDE, | ||
96 | +define([AC_ADD_INCLUDE], | ||
97 | [cat >> confdefs.h <<\EOF | ||
98 | [#include] $1 | ||
99 | EOF | ||
100 | ]) | ||
101 | |||
102 | dnl Copied from libtool.m4 | ||
103 | -AC_DEFUN(AC_PROG_LD_GNU, | ||
104 | +AC_DEFUN([AC_PROG_LD_GNU], | ||
105 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, | ||
106 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
107 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | ||
108 | @@ -259,7 +259,7 @@ | ||
109 | dnl AM_PATH_XML2([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) | ||
110 | dnl Test for XML, and define XML_CFLAGS and XML_LIBS | ||
111 | dnl | ||
112 | -AC_DEFUN(AM_PATH_XML2,[ | ||
113 | +AC_DEFUN([AM_PATH_XML2],[ | ||
114 | AC_ARG_WITH(xml-prefix, | ||
115 | [ --with-xml-prefix=PFX Prefix where libxml is installed (optional)], | ||
116 | xml_config_prefix="$withval", xml_config_prefix="") | ||
117 | @@ -443,7 +443,7 @@ | ||
118 | dnl AM_PATH_MYSQL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) | ||
119 | dnl Test for MYSQL, and define MYSQL_CFLAGS and MYSQL_LIBS | ||
120 | dnl | ||
121 | -AC_DEFUN(AM_PATH_MYSQL, | ||
122 | +AC_DEFUN([AM_PATH_MYSQL], | ||
123 | [dnl | ||
124 | dnl Get the cflags and libraries from the mysql_config script | ||
125 | dnl | ||
126 | @@ -485,7 +485,7 @@ | ||
127 | ]) | ||
128 | |||
129 | dnl Removes -I/usr/include/? from given variable | ||
130 | -AC_DEFUN(CFLAGS_REMOVE_USR_INCLUDE,[ | ||
131 | +AC_DEFUN([CFLAGS_REMOVE_USR_INCLUDE],[ | ||
132 | ac_new_flags="" | ||
133 | for i in [$]$1; do | ||
134 | case [$]i in | ||
135 | @@ -497,7 +497,7 @@ | ||
136 | ]) | ||
137 | |||
138 | dnl Removes -L/usr/lib/? from given variable | ||
139 | -AC_DEFUN(LIB_REMOVE_USR_LIB,[ | ||
140 | +AC_DEFUN([LIB_REMOVE_USR_LIB],[ | ||
141 | ac_new_flags="" | ||
142 | for i in [$]$1; do | ||
143 | case [$]i in | ||
144 | @@ -510,7 +510,7 @@ | ||
145 | |||
146 | dnl From Bruno Haible. | ||
147 | |||
148 | -AC_DEFUN(jm_ICONV, | ||
149 | +AC_DEFUN([jm_ICONV], | ||
150 | [ | ||
151 | dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and | ||
152 | dnl those with the standalone portable libiconv installed). | ||
153 | @@ -607,7 +607,7 @@ | ||
154 | fi | ||
155 | ]) | ||
156 | |||
157 | -AC_DEFUN(rjs_CHARSET,[ | ||
158 | +AC_DEFUN([rjs_CHARSET],[ | ||
159 | dnl Find out if we can convert from $1 to UCS2-LE | ||
160 | AC_MSG_CHECKING([can we convert from $1 to UCS2-LE?]) | ||
161 | AC_TRY_RUN([ | ||
162 | @@ -625,7 +625,7 @@ | ||
163 | |||
164 | dnl CFLAGS_ADD_DIR(CFLAGS, $INCDIR) | ||
165 | dnl This function doesn't add -I/usr/include into CFLAGS | ||
166 | -AC_DEFUN(CFLAGS_ADD_DIR,[ | ||
167 | +AC_DEFUN([CFLAGS_ADD_DIR],[ | ||
168 | if test "$2" != "/usr/include" ; then | ||
169 | $1="$$1 -I$2" | ||
170 | fi | ||
171 | @@ -633,7 +633,7 @@ | ||
172 | |||
173 | dnl LIB_ADD_DIR(LDFLAGS, $LIBDIR) | ||
174 | dnl This function doesn't add -L/usr/lib into LDFLAGS | ||
175 | -AC_DEFUN(LIB_ADD_DIR,[ | ||
176 | +AC_DEFUN([LIB_ADD_DIR],[ | ||
177 | if test "$2" != "/usr/lib" ; then | ||
178 | $1="$$1 -L$2" | ||
179 | fi | ||
diff --git a/meta-moblin/packages/samba/files/init b/meta-moblin/packages/samba/files/init new file mode 100644 index 0000000000..cb57b17de4 --- /dev/null +++ b/meta-moblin/packages/samba/files/init | |||
@@ -0,0 +1,58 @@ | |||
1 | #! /bin/sh | ||
2 | # | ||
3 | # This is an init script for openembedded | ||
4 | # Copy it to /etc/init.d/samba and type | ||
5 | # > update-rc.d samba defaults 60 | ||
6 | # | ||
7 | |||
8 | |||
9 | smbd=/usr/sbin/smbd | ||
10 | test -x "$smbd" || exit 0 | ||
11 | nmbd=/usr/sbin/nmbd | ||
12 | test -x "$nmbd" || exit 0 | ||
13 | |||
14 | |||
15 | case "$1" in | ||
16 | start) | ||
17 | echo -n "Starting Samba: smbd" | ||
18 | start-stop-daemon --start --quiet --exec $smbd | ||
19 | echo -n " nmbd" | ||
20 | start-stop-daemon --start --quiet --exec $nmbd | ||
21 | echo "." | ||
22 | ;; | ||
23 | stop) | ||
24 | echo -n "Stopping Samba: smbd" | ||
25 | start-stop-daemon --stop --quiet --pidfile /var/run/smbd.pid | ||
26 | echo -n " nmbd" | ||
27 | start-stop-daemon --stop --quiet --pidfile /var/run/nmbd.pid | ||
28 | echo "." | ||
29 | ;; | ||
30 | reload|force-reload) | ||
31 | start-stop-daemon --stop --quiet --signal 1 --exec $smbd | ||
32 | start-stop-daemon --stop --quiet --signal 1 --exec $nmbd | ||
33 | ;; | ||
34 | restart) | ||
35 | echo -n "Stopping Samba: smbd" | ||
36 | start-stop-daemon --stop --quiet --pidfile /var/run/smbd.pid | ||
37 | echo -n " nmbd" | ||
38 | start-stop-daemon --stop --quiet --pidfile /var/run/nmbd.pid | ||
39 | echo "" | ||
40 | echo -n "Waiting for samba processes to die off" | ||
41 | for i in 1 2 3 ; | ||
42 | do | ||
43 | sleep 1 | ||
44 | echo -n "." | ||
45 | done | ||
46 | echo "" | ||
47 | echo -n "Starting Samba: smbd" | ||
48 | start-stop-daemon --start --quiet --exec $smbd | ||
49 | echo -n " nmbd" | ||
50 | start-stop-daemon --start --quiet --exec $nmbd | ||
51 | echo "." | ||
52 | ;; | ||
53 | *) | ||
54 | echo "Usage: /etc/init.d/samba {start|stop|reload|restart|force-reload}" | ||
55 | exit 1 | ||
56 | esac | ||
57 | |||
58 | exit 0 \ No newline at end of file | ||
diff --git a/meta-moblin/packages/samba/files/mtab.patch b/meta-moblin/packages/samba/files/mtab.patch new file mode 100644 index 0000000000..2ee8ba0941 --- /dev/null +++ b/meta-moblin/packages/samba/files/mtab.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | diff -urN source/client/mtab.c samba-3.2.7//source/client/mtab.c | ||
2 | --- source/client/mtab.c 2008-12-19 13:57:33.000000000 +0000 | ||
3 | +++ source/client/mtab.c 2009-01-09 23:14:00.717671075 +0000 | ||
4 | @@ -32,6 +32,7 @@ | ||
5 | #include <errno.h> | ||
6 | #include <stdio.h> | ||
7 | #include <sys/time.h> | ||
8 | +#include <sys/stat.h> | ||
9 | #include <time.h> | ||
10 | #include <fcntl.h> | ||
11 | #include <mntent.h> | ||
diff --git a/meta-moblin/packages/samba/files/quota.patch b/meta-moblin/packages/samba/files/quota.patch new file mode 100644 index 0000000000..6f42ff868f --- /dev/null +++ b/meta-moblin/packages/samba/files/quota.patch | |||
@@ -0,0 +1,11 @@ | |||
1 | --- lib/sysquotas_4A.c.old 2005-07-03 17:16:00.000000000 +0200 | ||
2 | +++ lib/sysquotas_4A.c 2005-07-03 17:10:09.000000000 +0200 | ||
3 | @@ -28,6 +28,8 @@ | ||
4 | /* long quotactl(int cmd, char *special, qid_t id, caddr_t addr) */ | ||
5 | /* this is used by: HPUX,IRIX */ | ||
6 | |||
7 | + #define _LINUX_QUOTA_VERSION 1 | ||
8 | + | ||
9 | #ifdef HAVE_SYS_TYPES_H | ||
10 | #include <sys/types.h> | ||
11 | #endif | ||
diff --git a/meta-moblin/packages/samba/files/smb.conf b/meta-moblin/packages/samba/files/smb.conf new file mode 100644 index 0000000000..f07e3e4ec7 --- /dev/null +++ b/meta-moblin/packages/samba/files/smb.conf | |||
@@ -0,0 +1,266 @@ | |||
1 | # This is the main Samba configuration file. You should read the | ||
2 | # smb.conf(5) manual page in order to understand the options listed | ||
3 | # here. Samba has a huge number of configurable options (perhaps too | ||
4 | # many!) most of which are not shown in this example | ||
5 | # | ||
6 | # For a step to step guide on installing, configuring and using samba, | ||
7 | # read the Samba-HOWTO-Collection. This may be obtained from: | ||
8 | # http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf | ||
9 | # | ||
10 | # Many working examples of smb.conf files can be found in the | ||
11 | # Samba-Guide which is generated daily and can be downloaded from: | ||
12 | # http://www.samba.org/samba/docs/Samba-Guide.pdf | ||
13 | # | ||
14 | # Any line which starts with a ; (semi-colon) or a # (hash) | ||
15 | # is a comment and is ignored. In this example we will use a # | ||
16 | # for commentry and a ; for parts of the config file that you | ||
17 | # may wish to enable | ||
18 | # | ||
19 | # NOTE: Whenever you modify this file you should run the command "testparm" | ||
20 | # to check that you have not made any basic syntactic errors. | ||
21 | # | ||
22 | #======================= Global Settings ===================================== | ||
23 | [global] | ||
24 | |||
25 | # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH | ||
26 | workgroup = MYGROUP | ||
27 | |||
28 | # server string is the equivalent of the NT Description field | ||
29 | server string = Samba Server | ||
30 | |||
31 | # Security mode. Defines in which mode Samba will operate. Possible | ||
32 | # values are share, user, server, domain and ads. Most people will want | ||
33 | # user level security. See the Samba-HOWTO-Collection for details. | ||
34 | security = user | ||
35 | |||
36 | # This option is important for security. It allows you to restrict | ||
37 | # connections to machines which are on your local network. The | ||
38 | # following example restricts access to two C class networks and | ||
39 | # the "loopback" interface. For more examples of the syntax see | ||
40 | # the smb.conf man page | ||
41 | ; hosts allow = 192.168.1. 192.168.2. 127. | ||
42 | |||
43 | # If you want to automatically load your printer list rather | ||
44 | # than setting them up individually then you'll need this | ||
45 | load printers = yes | ||
46 | |||
47 | # you may wish to override the location of the printcap file | ||
48 | ; printcap name = /etc/printcap | ||
49 | |||
50 | # on SystemV system setting printcap name to lpstat should allow | ||
51 | # you to automatically obtain a printer list from the SystemV spool | ||
52 | # system | ||
53 | ; printcap name = lpstat | ||
54 | |||
55 | # It should not be necessary to specify the print system type unless | ||
56 | # it is non-standard. Currently supported print systems include: | ||
57 | # bsd, cups, sysv, plp, lprng, aix, hpux, qnx | ||
58 | ; printing = cups | ||
59 | |||
60 | # Uncomment this if you want a guest account, you must add this to /etc/passwd | ||
61 | # otherwise the user "nobody" is used | ||
62 | ; guest account = pcguest | ||
63 | |||
64 | # this tells Samba to use a separate log file for each machine | ||
65 | # that connects | ||
66 | log file = /var/log/samba/log.%m | ||
67 | |||
68 | # Put a capping on the size of the log files (in Kb). | ||
69 | max log size = 50 | ||
70 | |||
71 | # Use password server option only with security = server | ||
72 | # The argument list may include: | ||
73 | # password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name] | ||
74 | # or to auto-locate the domain controller/s | ||
75 | # password server = * | ||
76 | ; password server = <NT-Server-Name> | ||
77 | |||
78 | # Use the realm option only with security = ads | ||
79 | # Specifies the Active Directory realm the host is part of | ||
80 | ; realm = MY_REALM | ||
81 | |||
82 | # Backend to store user information in. New installations should | ||
83 | # use either tdbsam or ldapsam. smbpasswd is available for backwards | ||
84 | # compatibility. tdbsam requires no further configuration. | ||
85 | ; passdb backend = tdbsam | ||
86 | |||
87 | # Using the following line enables you to customise your configuration | ||
88 | # on a per machine basis. The %m gets replaced with the netbios name | ||
89 | # of the machine that is connecting. | ||
90 | # Note: Consider carefully the location in the configuration file of | ||
91 | # this line. The included file is read at that point. | ||
92 | ; include = /usr/local/samba/lib/smb.conf.%m | ||
93 | |||
94 | # Configure Samba to use multiple interfaces | ||
95 | # If you have multiple network interfaces then you must list them | ||
96 | # here. See the man page for details. | ||
97 | ; interfaces = 192.168.12.2/24 192.168.13.2/24 | ||
98 | |||
99 | # Browser Control Options: | ||
100 | # set local master to no if you don't want Samba to become a master | ||
101 | # browser on your network. Otherwise the normal election rules apply | ||
102 | ; local master = no | ||
103 | |||
104 | # OS Level determines the precedence of this server in master browser | ||
105 | # elections. The default value should be reasonable | ||
106 | ; os level = 33 | ||
107 | |||
108 | # Domain Master specifies Samba to be the Domain Master Browser. This | ||
109 | # allows Samba to collate browse lists between subnets. Don't use this | ||
110 | # if you already have a Windows NT domain controller doing this job | ||
111 | ; domain master = yes | ||
112 | |||
113 | # Preferred Master causes Samba to force a local browser election on startup | ||
114 | # and gives it a slightly higher chance of winning the election | ||
115 | ; preferred master = yes | ||
116 | |||
117 | # Enable this if you want Samba to be a domain logon server for | ||
118 | # Windows95 workstations. | ||
119 | ; domain logons = yes | ||
120 | |||
121 | # if you enable domain logons then you may want a per-machine or | ||
122 | # per user logon script | ||
123 | # run a specific logon batch file per workstation (machine) | ||
124 | ; logon script = %m.bat | ||
125 | # run a specific logon batch file per username | ||
126 | ; logon script = %U.bat | ||
127 | |||
128 | # Where to store roving profiles (only for Win95 and WinNT) | ||
129 | # %L substitutes for this servers netbios name, %U is username | ||
130 | # You must uncomment the [Profiles] share below | ||
131 | ; logon path = \\%L\Profiles\%U | ||
132 | |||
133 | # Windows Internet Name Serving Support Section: | ||
134 | # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server | ||
135 | ; wins support = yes | ||
136 | |||
137 | # WINS Server - Tells the NMBD components of Samba to be a WINS Client | ||
138 | # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both | ||
139 | ; wins server = w.x.y.z | ||
140 | |||
141 | # WINS Proxy - Tells Samba to answer name resolution queries on | ||
142 | # behalf of a non WINS capable client, for this to work there must be | ||
143 | # at least one WINS Server on the network. The default is NO. | ||
144 | ; wins proxy = yes | ||
145 | |||
146 | # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names | ||
147 | # via DNS nslookups. The default is NO. | ||
148 | dns proxy = no | ||
149 | |||
150 | # These scripts are used on a domain controller or stand-alone | ||
151 | # machine to add or delete corresponding unix accounts | ||
152 | ; add user script = /usr/sbin/useradd %u | ||
153 | ; add group script = /usr/sbin/groupadd %g | ||
154 | ; add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u | ||
155 | ; delete user script = /usr/sbin/userdel %u | ||
156 | ; delete user from group script = /usr/sbin/deluser %u %g | ||
157 | ; delete group script = /usr/sbin/groupdel %g | ||
158 | |||
159 | |||
160 | #============================ Share Definitions ============================== | ||
161 | [homes] | ||
162 | comment = Home Directories | ||
163 | browseable = yes | ||
164 | writable = yes | ||
165 | |||
166 | # Un-comment the following and create the netlogon directory for Domain Logons | ||
167 | ; [netlogon] | ||
168 | ; comment = Network Logon Service | ||
169 | ; path = /usr/local/samba/lib/netlogon | ||
170 | ; guest ok = yes | ||
171 | ; writable = no | ||
172 | ; share modes = no | ||
173 | |||
174 | |||
175 | # Un-comment the following to provide a specific roving profile share | ||
176 | # the default is to use the user's home directory | ||
177 | ;[Profiles] | ||
178 | ; path = /usr/local/samba/profiles | ||
179 | ; browseable = no | ||
180 | ; guest ok = yes | ||
181 | |||
182 | |||
183 | # NOTE: If you have a BSD-style print system there is no need to | ||
184 | # specifically define each individual printer | ||
185 | [printers] | ||
186 | comment = All Printers | ||
187 | path = /var/spool/samba | ||
188 | browseable = no | ||
189 | # Set public = yes to allow user 'guest account' to print | ||
190 | guest ok = no | ||
191 | writable = no | ||
192 | printable = yes | ||
193 | |||
194 | # This one is useful for people to share files | ||
195 | ;[tmp] | ||
196 | ; comment = Temporary file space | ||
197 | ; path = /tmp | ||
198 | ; read only = no | ||
199 | ; public = yes | ||
200 | |||
201 | # A publicly accessible directory, but read only, except for people in | ||
202 | # the "staff" group | ||
203 | ;[public] | ||
204 | ; comment = Public Stuff | ||
205 | ; path = /home/samba | ||
206 | ; public = yes | ||
207 | ; writable = yes | ||
208 | ; printable = no | ||
209 | ; write list = @staff | ||
210 | |||
211 | # Other examples. | ||
212 | # | ||
213 | # A private printer, usable only by fred. Spool data will be placed in fred's | ||
214 | # home directory. Note that fred must have write access to the spool directory, | ||
215 | # wherever it is. | ||
216 | ;[fredsprn] | ||
217 | ; comment = Fred's Printer | ||
218 | ; valid users = fred | ||
219 | ; path = /homes/fred | ||
220 | ; printer = freds_printer | ||
221 | ; public = no | ||
222 | # A private directory, usable only by fred. Note that fred requires write | ||
223 | # access to the directory. | ||
224 | ;[fredsdir] | ||
225 | ; comment = Fred's Service | ||
226 | ; path = /usr/somewhere/private | ||
227 | ; valid users = fred | ||
228 | ; public = no | ||
229 | ; writable = yes | ||
230 | ; printable = no | ||
231 | |||
232 | # a service which has a different directory for each machine that connects | ||
233 | # this allows you to tailor configurations to incoming machines. You could | ||
234 | # also use the %U option to tailor it by user name. | ||
235 | # The %m gets replaced with the machine name that is connecting. | ||
236 | ;[pchome] | ||
237 | ; comment = PC Directories | ||
238 | ; path = /usr/pc/%m | ||
239 | ; public = no | ||
240 | ; writable = yes | ||
241 | |||
242 | # A publicly accessible directory, read/write to all users. Note that all files | ||
243 | # created in the directory by users will be owned by the default user, so | ||
244 | # any user with access can delete any other user's files. Obviously this | ||
245 | # directory must be writable by the default user. Another user could of course | ||
246 | # be specified, in which case all files would be owned by that user instead. | ||
247 | ;[public] | ||
248 | ; path = /usr/somewhere/else/public | ||
249 | ; public = yes | ||
250 | ; only guest = yes | ||
251 | ; writable = yes | ||
252 | ; printable = no | ||
253 | |||
254 | # The following two entries demonstrate how to share a directory so that two | ||
255 | # users can place files there that will be owned by the specific users. In this | ||
256 | # setup, the directory should be writable by both users and should have the | ||
257 | # sticky bit set on it to prevent abuse. Obviously this could be extended to | ||
258 | # as many users as required. | ||
259 | ;[myshare] | ||
260 | ; comment = Mary's and Fred's stuff | ||
261 | ; path = /usr/somewhere/shared | ||
262 | ; valid users = mary fred | ||
263 | ; public = no | ||
264 | ; writable = yes | ||
265 | ; printable = no | ||
266 | ; create mask = 0765 | ||
diff --git a/meta-moblin/packages/samba/files/tdb.pc b/meta-moblin/packages/samba/files/tdb.pc new file mode 100644 index 0000000000..6307a20a03 --- /dev/null +++ b/meta-moblin/packages/samba/files/tdb.pc | |||
@@ -0,0 +1,11 @@ | |||
1 | prefix=/usr | ||
2 | exec_prefix=/usr | ||
3 | libdir=/usr/lib | ||
4 | includedir=/usr/include | ||
5 | |||
6 | Name: tdb | ||
7 | Description: A trivial database | ||
8 | Version: 1.1.2 | ||
9 | Libs: -L${libdir} -ltdb | ||
10 | Cflags: -I${includedir} | ||
11 | URL: http://tdb.samba.org/ | ||
diff --git a/meta-moblin/packages/samba/files/volatiles.03_samba b/meta-moblin/packages/samba/files/volatiles.03_samba new file mode 100644 index 0000000000..469bc9e7b0 --- /dev/null +++ b/meta-moblin/packages/samba/files/volatiles.03_samba | |||
@@ -0,0 +1,2 @@ | |||
1 | # <type> <owner> <group> <mode> <path> <linksource> | ||
2 | d root root 0755 /var/log/samba none | ||
diff --git a/meta-moblin/packages/samba/samba-basic.inc b/meta-moblin/packages/samba/samba-basic.inc new file mode 100644 index 0000000000..209ba8ffc4 --- /dev/null +++ b/meta-moblin/packages/samba/samba-basic.inc | |||
@@ -0,0 +1,25 @@ | |||
1 | SRC_URI += "file://config-lfs.patch;patch=1 \ | ||
2 | file://quota.patch;patch=1;pnum=0 \ | ||
3 | " | ||
4 | |||
5 | EXTRA_OECONF += "\ | ||
6 | --without-ads \ | ||
7 | --without-winbind \ | ||
8 | --without-ldap \ | ||
9 | --without-krb5" | ||
10 | |||
11 | PACKAGES =+ "libsmbclient libsmbclient-dev cifs cifs-doc swat libtdb" | ||
12 | |||
13 | RCONFLICTS_${PN} = "samba-ads" | ||
14 | RCONFLICTS_libsmbclient = "libsmbclient-ads" | ||
15 | RCONFLICTS_libsmbclient-dev = "libsmbclient-ads-dev" | ||
16 | RCONFLICTS_cifs = "cifs-ads" | ||
17 | RCONFLICTS_cifs-doc = "cifs-ads-doc" | ||
18 | RCONFLICTS_swat = "swat-ads" | ||
19 | |||
20 | FILES_cifs = "${base_sbindir}/mount.cifs ${base_sbindir}/umount.cifs" | ||
21 | FILES_cifs-doc = "${mandir}/man8/mount.cifs.8 ${mandir}/man8/umount.cifs.8" | ||
22 | FILES_libsmbclient = "${libdir}/libsmbclient.so.*" | ||
23 | FILES_libsmbclient-dev = "${libdir}/libsmbclient.so ${includedir}" | ||
24 | FILES_swat = "${sbindir}/swat ${datadir}/swat ${libdir}/*.msg" | ||
25 | FILES_libtdb = "${libdir}/libtdb.so.*" \ No newline at end of file | ||
diff --git a/meta-moblin/packages/samba/samba.inc b/meta-moblin/packages/samba/samba.inc new file mode 100644 index 0000000000..ec21ed70b0 --- /dev/null +++ b/meta-moblin/packages/samba/samba.inc | |||
@@ -0,0 +1,92 @@ | |||
1 | SECTION = "console/network" | ||
2 | LICENSE = "GPL" | ||
3 | DEPENDS = "readline virtual/libiconv" | ||
4 | |||
5 | SRC_URI = "http://samba.org/samba/ftp/stable/samba-${PV}.tar.gz \ | ||
6 | file://volatiles.03_samba \ | ||
7 | file://smb.conf \ | ||
8 | file://init \ | ||
9 | file://tdb.pc \ | ||
10 | " | ||
11 | |||
12 | S = "${WORKDIR}/samba-${PV}/source" | ||
13 | |||
14 | inherit autotools update-rc.d | ||
15 | |||
16 | FILES_${PN} += "${libdir}/vfs/*.so ${libdir}/charset/*.so ${libdir}/*.dat \ | ||
17 | ${libdir}/auth/*.so ${libdir}/security/*.so" | ||
18 | FILES_${PN}-dbg += "${libdir}/vfs/.debug/*.so ${libdir}/charset/.debug/*.so \ | ||
19 | ${libdir}/auth/.debug/*.so ${libdir}/security/.debug/*.so" | ||
20 | |||
21 | # The file system settings --foodir=dirfoo and overridden unconditionally | ||
22 | # in the samba config by --with-foodir=dirfoo - even if the --with is not | ||
23 | # specified! Fix that here. Set the privatedir to /etc/samba/private. | ||
24 | EXTRA_OECONF='--disable-cups \ | ||
25 | --with-readline=${STAGING_LIBDIR}/.. \ | ||
26 | --with-libiconv=${STAGING_LIBDIR}/.. \ | ||
27 | --without-automount \ | ||
28 | --with-configdir=${sysconfdir}/samba \ | ||
29 | --with-privatedir=${sysconfdir}/samba/private \ | ||
30 | --with-lockdir=${localstatedir}/lock \ | ||
31 | --with-piddir=${localstatedir}/run \ | ||
32 | --with-logfilebase=${localstatedir}/log \ | ||
33 | --with-libdir=${libdir} \ | ||
34 | --with-mandir=${mandir} \ | ||
35 | --with-swatdir=${datadir}/swat \ | ||
36 | samba_cv_struct_timespec=yes' | ||
37 | |||
38 | INITSCRIPT_NAME = "samba" | ||
39 | # No dependencies, goes in at level 20 (NOTE: take care with the | ||
40 | # level, later levels put the shutdown later too - see the links | ||
41 | # in rc6.d, the shutdown must precede network shutdown). | ||
42 | INITSCRIPT_PARAMS = "defaults" | ||
43 | CONFFILES_${PN} = "${sysconfdir}/samba/smb.conf" | ||
44 | |||
45 | do_configure_prepend () { | ||
46 | ./script/mkversion.sh | ||
47 | if [ ! -e acinclude.m4 ]; then | ||
48 | touch aclocal.m4 | ||
49 | cat aclocal.m4 > acinclude.m4 | ||
50 | fi | ||
51 | } | ||
52 | |||
53 | do_compile () { | ||
54 | oe_runmake proto_exists | ||
55 | base_do_compile | ||
56 | } | ||
57 | |||
58 | do_install_append() { | ||
59 | install -d ${D}${libdir}/pkgconfig/ | ||
60 | cp ${WORKDIR}/tdb.pc ${D}${libdir}/pkgconfig/ | ||
61 | mv ${D}${libdir}/libsmbclient.so ${D}${libdir}/libsmbclient.so.0 || true | ||
62 | ln -sf libsmbclient.so.0 ${D}${libdir}/libsmbclient.so | ||
63 | mkdir -p ${D}${base_sbindir} | ||
64 | rm -f ${D}${bindir}/*.old | ||
65 | rm -f ${D}${sbindir}/*.old | ||
66 | [ -f ${D}${sbindir}/mount.cifs ] && mv ${D}${sbindir}/mount.cifs ${D}${base_sbindir}/ | ||
67 | [ -f ${D}${sbindir}/umount.cifs ] && mv ${D}${sbindir}/umount.cifs ${D}${base_sbindir}/ | ||
68 | |||
69 | # This is needed for < 3.2.4 | ||
70 | rm -f ${D}${sbindir}/mount.smbfs ${D}${base_sbindir}/mount.smbfs | ||
71 | if [ -f ${D}${bindir}/smbmount ]; then | ||
72 | ln -sf ${bindir}/smbmount ${D}${base_sbindir}/mount.smb | ||
73 | ln -sf ${bindir}/smbmount ${D}${base_sbindir}/mount.smbfs | ||
74 | fi | ||
75 | |||
76 | install -D -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/samba | ||
77 | install -D -m 644 ${WORKDIR}/smb.conf ${D}${sysconfdir}/samba/smb.conf | ||
78 | install -D -m 644 ${WORKDIR}/volatiles.03_samba ${D}${sysconfdir}/default/volatiles/volatiles.03_samba | ||
79 | install -d ${D}/var/log/samba | ||
80 | install -d ${D}/var/spool/samba | ||
81 | } | ||
82 | |||
83 | do_stage() { | ||
84 | install -m 0644 include/libsmbclient.h ${STAGING_INCDIR} | ||
85 | oe_libinstall -C bin -a -so libsmbclient ${STAGING_LIBDIR} | ||
86 | oe_libinstall -C bin -a -so libtdb ${STAGING_LIBDIR} | ||
87 | oe_libinstall -C bin -a -so libtalloc ${STAGING_LIBDIR} | ||
88 | oe_libinstall -C bin -so libwbclient ${STAGING_LIBDIR} | ||
89 | install -d ${STAGING_LIBDIR}/pkgconfig/ | ||
90 | install -m 0644 ${WORKDIR}/tdb.pc ${STAGING_LIBDIR}/pkgconfig/ | ||
91 | install -m 0644 ${S}/lib/tdb/include/*.h ${STAGING_INCDIR}/ | ||
92 | } | ||
diff --git a/meta-moblin/packages/samba/samba_3.3.0.bb b/meta-moblin/packages/samba/samba_3.3.0.bb new file mode 100644 index 0000000000..c561d95524 --- /dev/null +++ b/meta-moblin/packages/samba/samba_3.3.0.bb | |||
@@ -0,0 +1,35 @@ | |||
1 | require samba.inc | ||
2 | require samba-basic.inc | ||
3 | LICENSE = "GPLv3" | ||
4 | |||
5 | # 3.3.0 and newer will upgrade your tdb database to a | ||
6 | # new version that you can not downgrade to use with older | ||
7 | # releases. More testing will happen before this is removed | ||
8 | # should there be further issues. Appears to work though :) | ||
9 | DEFAULT_PREFERENCE = "-1" | ||
10 | |||
11 | SRC_URI += "file://configure-3.3.0.patch;patch=1 \ | ||
12 | file://config-h.patch;patch=1 \ | ||
13 | file://mtab.patch;patch=1 \ | ||
14 | " | ||
15 | |||
16 | PR = "r2" | ||
17 | |||
18 | EXTRA_OECONF += "\ | ||
19 | SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes \ | ||
20 | samba_cv_CC_NEGATIVE_ENUM_VALUES=yes \ | ||
21 | linux_getgrouplist_ok=no \ | ||
22 | samba_cv_HAVE_BROKEN_GETGROUPS=no \ | ||
23 | samba_cv_HAVE_FTRUNCATE_EXTEND=yes \ | ||
24 | samba_cv_have_setresuid=yes \ | ||
25 | samba_cv_have_setresgid=yes \ | ||
26 | samba_cv_HAVE_WRFILE_KEYTAB=yes \ | ||
27 | " | ||
28 | |||
29 | do_configure() { | ||
30 | oe_runconf | ||
31 | } | ||
32 | |||
33 | do_compile () { | ||
34 | base_do_compile | ||
35 | } | ||