2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
12 PKG_MD5SUM
:=89273f67a6d8067cbbecefaa13747153
14 PKG_SOURCE_URL
:=ftp
://ftp.samba.org
/pub
/samba
/old-versions
/
15 PKG_SOURCE
:=samba-
$(PKG_VERSION
).
tar.gz
16 PKG_BUILD_DIR
:=$(BUILD_DIR
)/samba-
$(PKG_VERSION
)/
18 include $(INCLUDE_DIR
)/package.mk
20 TARGET_CFLAGS
+=$(if
$(CONFIG_SAMBA3_DEBUG
),-DSAMBA_DEBUG
)
27 URL
:=http
://www.samba.org
/
30 define Package
/samba3
/Description
31 Samba3
- made small with patches taken from AVM GPL releases and freetz
34 define Package
/samba3
/conffiles
36 /etc
/samba
/smb.conf.template
39 define Package
/samba3
/config
40 source
"$(SOURCE)/Config.in"
43 define Build
/Prepare
/LFS
47 $(call Build
/Prepare
/Default
)
50 define Build
/Configure
51 [ -f
"$(PKG_BUILD_DIR)/source/include/config.h.save" ] || \
52 $(CP
) $(PKG_BUILD_DIR
)/source
/include/config.h \
53 $(PKG_BUILD_DIR
)/source
/include/config.h.save
55 $(PKG_BUILD_DIR
)/source
/include/config.h.save \
56 .
/files
/config-lfs.h
>> $(PKG_BUILD_DIR
)/source
/include/config.h
57 $(Build
/Configure
/Default
)
62 CFLAGS
="$(TARGET_CFLAGS)" \
63 CPPFLAGS
="$(TARGET_CPPFLAGS)" \
64 LDFLAGS
="$(TARGET_LDFLAGS)" \
65 $(MAKE
) -C
$(PKG_BUILD_DIR
)/source \
66 $(TARGET_CONFIGURE_OPTS
) \
70 define Package
/samba3
/install
71 $(INSTALL_DIR
) $(1)/etc
/{samba
,init.d
,config
}
72 $(INSTALL_BIN
) .
/files
/samba.init
$(1)/etc
/init.d
/samba
73 $(INSTALL_DATA
) .
/files
/samba.config
$(1)/etc
/config
/samba
74 $(INSTALL_DATA
) .
/files
/smb.conf.template
$(1)/etc
/samba
/
75 touch
$(1)/etc
/samba
/smbpasswd
76 $(INSTALL_DIR
) $(1)/bin
77 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/source
/bin
/smbpasswd
$(1)/bin
/
78 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/source
/bin
/smbd
$(1)/bin
/
79 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/source
/bin
/nmbd
$(1)/bin
/
82 $(eval
$(call BuildPackage
,samba3
))