<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>samba</Name>
        <Homepage>http://www.samba.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>service</IsA>
        <Summary>A suite of SMB and CIFS client/server programs for UNIX</Summary>
        <Description>samba is a free software implementation of Microsoft's networking protocol released under the GNU General Public License. As of version 3, Samba not only provides file and print services for various Microsoft Windows clients but can also integrate with a Windows Server domain, either as a Primary Domain Controller (PDC) or as a Domain Member. It can also be part of an Active Directory domain.</Description>
        <Archive sha1sum="c65c0d38f7c037b5c053d138b799114d558874fd" type="targz">http://us1.samba.org/samba/ftp/stable/samba-4.2.3.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>keyutils</Dependency>
            <Dependency>acl-devel</Dependency>
            <Dependency>pam-devel</Dependency>
            <Dependency>attr-devel</Dependency>
            <Dependency>popt-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libcap-devel</Dependency>
            <Dependency>python-devel</Dependency>
            <Dependency>ncurses-devel</Dependency>
            <Dependency>readline-devel</Dependency>
            <Dependency>e2fsprogs-devel</Dependency>
            <Dependency>libgcrypt-devel</Dependency>
            <Dependency>libbsd-devel</Dependency>
            <Dependency>avahi-libs</Dependency>
            <!--Dependency>ctdb-devel</Dependency-->
            <Dependency>cups-devel</Dependency>
            <Dependency>avahi-devel</Dependency>
            <!--Dependency>dmapi-devel</Dependency-->
            <!--Dependency>gamin-devel</Dependency-->
            <Dependency>gnutls-devel</Dependency>
            <Dependency>libaio-devel</Dependency>
            <!--Dependency>libldb-devel</Dependency-->
            <Dependency>mit-kerberos</Dependency>
            <Dependency>iniparser-devel</Dependency>
            <Dependency>libtalloc-devel</Dependency>
            <Dependency>libtevent-devel</Dependency>
            <Dependency>openldap-client</Dependency>
            <Dependency>libarchive-devel</Dependency>
            <Dependency>nss-devel</Dependency>
            <Dependency>docbook-xsl</Dependency>
            <Dependency>libxslt</Dependency>
            <Dependency versionFrom="1.2.12">libtdb-devel</Dependency>
            <Dependency versionFrom="2.1.26">cyrus-sasl-devel</Dependency>
        </BuildDependencies>
    </Source>

    <Package>
        <Name>samba</Name>
        <RuntimeDependencies>
            <Dependency>acl</Dependency>
            <Dependency>pam</Dependency>
            <Dependency>attr</Dependency>
            <Dependency>popt</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>libcap</Dependency>
            <Dependency>python</Dependency>
            <Dependency>ncurses</Dependency>
            <Dependency>readline</Dependency>
            <Dependency>e2fsprogs</Dependency>
            <Dependency>libgcrypt</Dependency>
            <Dependency>libarchive</Dependency>
            <Dependency>cups</Dependency>
            <Dependency>avahi</Dependency>
            <Dependency>gdb</Dependency>
            <!--Dependency>dmapi</Dependency>
            <Dependency>gamin</Dependency-->
            <Dependency>gnutls</Dependency>
            <Dependency>libbsd</Dependency>
            <Dependency>libaio</Dependency>
            <!--Dependency>libldb</Dependency-->
            <Dependency>keyutils</Dependency>
            <Dependency>iniparser</Dependency>
            <Dependency>libtalloc</Dependency>
            <Dependency>libtevent</Dependency>
            <Dependency>avahi-libs</Dependency>
            <Dependency>openldap-client</Dependency>
            <Dependency versionFrom="2.1.26">cyrus-sasl</Dependency>
            <Dependency versionFrom="1.2.12">libtdb</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/run</Path>
            <Path fileType="config">/etc</Path>
            <Path fileType="data">/var/lib</Path>
            <Path fileType="data">/var/log</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/sbin</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="library">/lib/security</Path>
            <Path fileType="data">/usr/share/samba</Path>
            <Path fileType="data">/usr/share/perl5</Path>
            <Path fileType="data">/var/cache/samba</Path>
	    <Path fileType="data">/var/run/ctdb</Path>
            <Path fileType="localedata">/usr/share/locale</Path>
            <Path fileType="config">/usr/lib/tmpfiles.d/samba.conf</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile owner="root" permission="0644" target="/etc/samba/lmhosts">lmhosts</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/pam.d/samba">samba.pam</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/samba/smbusers">smbusers</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/samba/smb.conf">smb.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/conf.d/samba">samba.confd</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/usr/lib/tmpfiles.d/samba.conf">tmpfiles.conf</AdditionalFile>
            <AdditionalFile owner="root" permission="0644" target="/etc/samba/system-auth-winbind">system-auth-winbind</AdditionalFile>
        </AdditionalFiles>
        <Provides>
            <COMAR script="package.py">System.Package</COMAR>
            <COMAR script="service.py">System.Service</COMAR>
        </Provides>
    </Package>

    <Package>
        <Name>samba-devel</Name>
        <Summary>Development files for samba</Summary>
        <RuntimeDependencies>
            <!--Dependency>libldb-devel</Dependency-->
            <Dependency>libtalloc-devel</Dependency>
            <Dependency>libtevent-devel</Dependency>
            <Dependency release="current">samba</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="data">/usr/lib/pkgconfig</Path>
        </Files>
    </Package>

    <History>
        <Update release="14">
            <Date>2015-07-30</Date>
            <Version>4.2.3</Version>
            <Comment>Version bump.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="13">
            <Date>2015-01-25</Date>
            <Version>4.1.16</Version>
            <Comment>Version bump.</Comment>
            <Name>Ergün Salman</Name>
            <Email>Poyraz76@pisilinux.org</Email>
        </Update>
        <Update release="12">
            <Date>2014-07-04</Date>
            <Version>4.1.9</Version>
            <Comment>Version Bump and security update(CVE-2014-0244, CVE-2014-3493).</Comment>
            <Name>Vedat Demir</Name>
            <Email>vedat@pisilinux.org</Email>
        </Update>
        <Update release="11">
            <Date>2014-06-04</Date>
            <Version>4.1.8</Version>
            <Comment>Version Bump.</Comment>
            <Name>Vedat Demir</Name>
            <Email>vedat@pisilinux.org</Email>
        </Update>
        <Update release="10">
            <Date>2014-05-20</Date>
            <Version>4.1.7</Version>
            <Comment>Rebuild.</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="9">
            <Date>2014-04-25</Date>
            <Version>4.1.7</Version>
            <Comment>Version bump.</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
        <Update release="8">
            <Date>2014-04-04</Date>
            <Version>4.1.6</Version>
            <Comment>Fix build with readline6.3</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="7" type="security">
            <Date>2014-03-13</Date>
            <Version>4.1.6</Version>
            <Comment>Version bump, remove swat package.</Comment>
            <Name>Serdar Soytetir</Name>
            <Email>kaptan@pisilinux.org</Email>
        </Update>
        <Update release="6">
            <Date>2014-03-10</Date>
            <Version>4.1.3</Version>
            <Comment>Rebuild</Comment>
            <Name>Varol Maksutoğlu</Name>
            <Email>waroi@pisilinux.org</Email>
        </Update>
        <Update release="5">
            <Date>2014-01-09</Date>
            <Version>4.1.3</Version>
            <Comment>Version bump. Add tmpfiles.conf</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
        <Update release="4">
            <Date>2013-11-16</Date>
            <Version>4.1.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Aydın Demirel</Name>
            <Email>aydin.demirel@pisilinux.org</Email>
        </Update>
        <Update release="3" type="security">
            <Date>2013-07-07</Date>
            <Version>4.0.7</Version>
            <Comment>Version bump.</Comment>
            <Name>Marcin Bojara</Name>
            <Email>marcin@pisilinux.org</Email>
        </Update>
        <Update release="2" type="security">
            <Date>2013-03-18</Date>
            <Version>3.6.12</Version>
            <Comment>V.Bump</Comment>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
        <Update release="1" type="security">
            <Date>2011-09-09</Date>
            <Version>3.5.10</Version>
            <Comment>First release</Comment>
            <Name>Pisi Linux Admins</Name>
            <Email>admins@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
