]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - pkgs/samba/samba.nm
Move packages to pkgs subdirectory.
[people/ms/ipfire-3.x.git] / pkgs / samba / samba.nm
CommitLineData
b534427f
MT
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
4# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
5# #
6# This program is free software: you can redistribute it and/or modify #
7# it under the terms of the GNU General Public License as published by #
8# the Free Software Foundation, either version 3 of the License, or #
9# (at your option) any later version. #
10# #
11# This program is distributed in the hope that it will be useful, #
12# but WITHOUT ANY WARRANTY; without even the implied warranty of #
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14# GNU General Public License for more details. #
15# #
16# You should have received a copy of the GNU General Public License #
17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include $(PKGROOT)/Include
26
27PKG_NAME = samba
c900042f 28PKG_VER = 3.5.6
b534427f
MT
29PKG_REL = 0
30
31PKG_MAINTAINER = Christian Schmidt <christian.schmidt@ipfire.org>
32PKG_GROUP = Networking/Daemons
33PKG_URL = http://www.samba.org/
34PKG_LICENSE = GPLv3+ and LGPLv3+
35PKG_SUMMARY = Server and Client software to interoperate with Windows machines.
36
d604bfdf
MT
37PKG_BUILD_DEPS+= autoconf automake cups-devel ncurses-devel libcap-devel \
38 openldap-devel openssl-devel pam-devel popt-devel readline-devel which
b534427f
MT
39
40define PKG_DESCRIPTION
41 Samba is the suite of programs by which a lot of PC-related machines \
42 share files, printers, and other information (such as lists of \
43 available files and printers). The Windows NT, OS/2, and Linux \
44 operating systems support this natively, and add-on packages can \
45 enable the same thing for DOS, Windows, VMS, UNIX of all kinds, MVS, \
46 and more. This package provides an SMB/CIFS server that can be used to \
47 provide network services to SMB/CIFS clients. \
48 Samba uses NetBIOS over TCP/IP (NetBT) protocols and does NOT \
49 need the NetBEUI (Microsoft Raw NetBIOS frame) protocol.
50endef
51
52PKG_TARBALL = $(THISAPP).tar.gz
53
d604bfdf
MT
54PKG_PACKAGES += $(PKG_NAME)-devel $(PKG_NAME)-libs
55
b534427f
MT
56CFLAGS += -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLDAP_DEPRECATED
57
b534427f 58define STAGE_BUILD
711a632d 59 cd $(DIR_APP)/source3 && \
b534427f
MT
60 ./configure \
61 --prefix=/usr \
62 --localstatedir=/var \
63 --with-lockdir=/var/lib/samba \
64 --with-piddir=/var/run \
65 --with-mandir=/usr/share/man \
66 --with-privatedir=/var/lib/samba/private \
67 --with-logfilebase=/var/log/samba \
68 --with-modulesdir=/usr/lib/samba \
69 --with-configdir=/etc/samba \
70 --with-pammodulesdir=/lib/security \
71 --with-swatdir=/usr/share/swat \
72 --with-automount \
73 --with-libsmbclient \
74 --with-libsmbsharemodes \
75 --with-pam \
76 --with-pam_smbpass \
77 --with-quotas \
78 --with-sendfile-support \
79 --with-syslog \
80 --with-utmp \
81 --with-winbind \
82 --with-shared-modules=idmap_ad,idmap_rid,idmap_adex,idmap_hash
83
711a632d 84 cd $(DIR_APP)/source3 && make pch all modules $(PARALLELISMFLAGS)
b534427f
MT
85endef
86
87define STAGE_INSTALL
711a632d 88 cd $(DIR_APP)/source3 && make install DESTDIR=$(BUILDROOT)
b534427f
MT
89
90 -mkdir -pv $(BUILDROOT)/etc/samba
91 echo "127.0.0.1 localhost" > $(BUILDROOT)/etc/samba/lmhosts
92endef