summaryrefslogtreecommitdiff
blob: fc7f54de289e877d4c770b99dd8f90568f501bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/samba-2.0.7-r1.ebuild,v 1.6 2000/10/27 20:43:29 drobbins Exp $

P=samba-2.0.7
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Samba"
SRC_URI="ftp://sunsite.org.uk/packages/samba/${A}"
HOMEPAGE="http://www.samba.org"

src_compile() { 
  cd ${S}/source
  CFLAGS="$CFLAGS -I/usr/include/openssl" try ./configure --prefix=/usr \
	--sysconfdir=/etc/smb --localstatedir=/var/log --libdir=/etc/smb --sbindir=/usr/sbin \
	--with-ssl --with-sslinc=/usr/include/openssl --with-automount \
	--with-utmp --without-sambabook --with-netatalk \
	--with-smbmount --with-pam --with-syslog \
	--with-privatedir=/etc/smb --with-lockdir=/var/lock --with-swatdir=/usr/share/swat
  try make
}

src_install() { 
  cd ${S}/source
  dodir /usr
  dodir /etc/smb
  dodir /usr/share/swat
  dodir /usr/doc/${P}/html/book
  dodir /var/log
  dodir /var/lock
  try make install prefix=${D}/usr BASEDIR=${D}/usr LIBDIR=${D}/etc/smb VARDIR=${D}/var/log \
		PRIVATEDIR=${D}/etc/smb SWATDIR=${D}/usr/share/swat \
		LOCKDIR=${D}/var/lock SBINDIR=${D}/usr/sbin
  prepman

  into /usr
  cd ${S}
  dodoc COPYING Manifest README README-smbmount Roadmap WHATSNEW.txt
  cd ${S}/docs
  dodoc announce history NT4-Locking.reg NT4-Locking.txt NT4_PlainPassword.reg
  dodoc samba.lsm THANKS Win*
  docinto html
  dodoc htmldocs/*.html
  docinto html/book
  dodoc htmldocs/using_samba/*.html
  docinto html/book/gifs
  dodoc htmldocs/using_samba/gifs/*
  docinto html/book/figs
  dodoc htmldocs/using_samba/figs/*
  docinto faq
  dodoc faq/*.txt
  docinto html/faq
  dodoc faq/*.html
  docinto textdocs
  dodoc textdocs/*
  cd ${S}
  cp -a examples ${D}/usr/doc/${PF}
  cp examples/smb.conf.default ${D}/etc/smb/smb.conf
  dodir /etc/rc.d/init.d
  cp ${O}/files/samba ${D}/etc/rc.d/init.d
}

pkg_config() {

    source ${ROOT}/etc/rc.d/config/functions

    echo "Generating symlinks..."

    ${ROOT}/usr/sbin/rc-update add samba

}