net-fs/samba: Install example configuration file (bug #558880).
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 1 Sep 2015 14:01:43 +0000 (16:01 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 1 Sep 2015 14:05:06 +0000 (16:05 +0200)
Package-Manager: portage-2.2.20.1
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
net-fs/samba/samba-4.0.26-r1.ebuild [moved from net-fs/samba/samba-4.0.26.ebuild with 98% similarity]
net-fs/samba/samba-4.1.20-r1.ebuild [moved from net-fs/samba/samba-4.1.20.ebuild with 97% similarity]
net-fs/samba/samba-4.2.3-r1.ebuild [moved from net-fs/samba/samba-4.2.3.ebuild with 97% similarity]

similarity index 98%
rename from net-fs/samba/samba-4.0.26.ebuild
rename to net-fs/samba/samba-4.0.26-r1.ebuild
index e3ef3e481adff6caf9434a84ae53325a1d1c87dc..c4ee74a91f91bf9e5c27978aad3864c6691cf49d 100644 (file)
@@ -152,6 +152,10 @@ src_install() {
        # Make all .so files executable
        find "${D}" -type f -name "*.so" -exec chmod +x {} +
 
+       # install example config file
+       insinto /etc/samba
+       doins examples/smb.conf.default
+
        # Install init script and conf.d file
        newinitd "${CONFDIR}/samba4.initd-r1" samba
        newconfd "${CONFDIR}/samba4.confd" samba
similarity index 97%
rename from net-fs/samba/samba-4.1.20.ebuild
rename to net-fs/samba/samba-4.1.20-r1.ebuild
index 3b8e63e772eb08feaef545eb3f5c24089383ccea..9a1ba22572e8d5b44292cbde9d8d641223bef270 100644 (file)
@@ -148,6 +148,10 @@ src_install() {
        # Make all .so files executable
        find "${D}" -type f -name "*.so" -exec chmod +x {} +
 
+       # install example config file
+       insinto /etc/samba
+       doins examples/smb.conf.default
+
        # Install init script and conf.d file
        newinitd "${CONFDIR}/samba4.initd-r1" samba
        newconfd "${CONFDIR}/samba4.confd" samba
@@ -172,6 +176,6 @@ pkg_postinst() {
 
        elog "For further information and migration steps make sure to read "
        elog "http://samba.org/samba/history/${P}.html "
-       elog "http://samba.org/samba/history/${PN}-4.0.0.html and"
+       elog "http://samba.org/samba/history/${PN}-4.1.0.html and"
        elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
 }
similarity index 97%
rename from net-fs/samba/samba-4.2.3.ebuild
rename to net-fs/samba/samba-4.2.3-r1.ebuild
index fa13c21e8f45cc238508ac2a32db8c02f807f0da..f6aff1b934af159f1f9a892f0bad4c090a222031 100644 (file)
@@ -154,6 +154,10 @@ src_install() {
        # Make all .so files executable
        find "${D}" -type f -name "*.so" -exec chmod +x {} +
 
+       # install example config file
+       insinto /etc/samba
+       doins examples/smb.conf.default
+
        # Install init script and conf.d file
        newinitd "${CONFDIR}/samba4.initd-r1" samba
        newconfd "${CONFDIR}/samba4.confd" samba
@@ -178,6 +182,6 @@ pkg_postinst() {
 
        elog "For further information and migration steps make sure to read "
        elog "http://samba.org/samba/history/${P}.html "
-       elog "http://samba.org/samba/history/${PN}-4.0.0.html and"
+       elog "http://samba.org/samba/history/${PN}-4.2.0.html and"
        elog "http://wiki.samba.org/index.php/Samba4/HOWTO "
 }