Skip to content

Commit

Permalink
app-admin/rsyslog: restructure FILESDIR
Browse files Browse the repository at this point in the history
"8-stable" sub directory is not needed anymore since upstream
has changed release/version schema long time ago (in 2014).

Package-Manager: Portage-2.3.44, Repoman-2.3.10
  • Loading branch information
Whissi committed Aug 3, 2018
1 parent 8831b44 commit 8850a1f
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 21 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

RSYSLOG_CONFIGFILE=${RSYSLOG_CONFIGFILE:-"/etc/rsyslog.conf"}
Expand Down
20 changes: 8 additions & 12 deletions app-admin/rsyslog/rsyslog-8.35.0-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ inherit autotools eutils linux-info python-any-r1 systemd
DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
HOMEPAGE="https://www.rsyslog.com/"

BRANCH="8-stable"

if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git"

Expand Down Expand Up @@ -49,8 +47,8 @@ else
"

PATCHES=(
"${FILESDIR}"/${BRANCH}/${PN}-8.35.0-fix-issue2719.patch
"${FILESDIR}"/${BRANCH}/${PN}-8.35.0-fix-issue2726.patch
"${FILESDIR}"/${PN}-8.35.0-fix-issue2719.patch
"${FILESDIR}"/${PN}-8.35.0-fix-issue2726.patch
)
fi

Expand Down Expand Up @@ -183,7 +181,6 @@ src_configure() {
--disable-generate-man-pages
--without-valgrind-testbench
$(use_enable test testbench)
$(use_enable curl libcurl)
# Input Plugins without depedencies
--enable-imdiag
--enable-imfile
Expand Down Expand Up @@ -221,7 +218,6 @@ src_configure() {
$(use_enable debug)
$(use_enable debug diagtools)
$(use_enable debug memcheck)
$(use_enable debug rtinst)
$(use_enable debug valgrind)
# Misc
$(use_enable curl fmhttp)
Expand Down Expand Up @@ -298,29 +294,29 @@ src_install() {
local DOCS=(
AUTHORS
ChangeLog
"${FILESDIR}"/${BRANCH}/README.gentoo
"${FILESDIR}"/README.gentoo
)

use doc && local HTML_DOCS=( "${S}/docs/build/." )

default

newconfd "${FILESDIR}/${BRANCH}/${PN}.confd-r1" ${PN}
newinitd "${FILESDIR}/${BRANCH}/${PN}.initd-r1" ${PN}
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}

keepdir /var/empty/dev
keepdir /var/spool/${PN}
keepdir /etc/ssl/${PN}
keepdir /etc/${PN}.d

insinto /etc
newins "${FILESDIR}/${BRANCH}/${PN}.conf" ${PN}.conf
newins "${FILESDIR}/${PN}.conf" ${PN}.conf

insinto /etc/rsyslog.d/
newins "${FILESDIR}/${BRANCH}/50-default-r1.conf" 50-default.conf
newins "${FILESDIR}/50-default-r1.conf" 50-default.conf

insinto /etc/logrotate.d/
newins "${FILESDIR}/${BRANCH}/${PN}-r1.logrotate" ${PN}
newins "${FILESDIR}/${PN}-r1.logrotate" ${PN}

if use mysql; then
insinto /usr/share/doc/${PF}/scripts/mysql
Expand Down
14 changes: 6 additions & 8 deletions app-admin/rsyslog/rsyslog-8.36.0-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ inherit autotools eutils linux-info python-any-r1 systemd
DESCRIPTION="An enhanced multi-threaded syslogd with database support and more"
HOMEPAGE="https://www.rsyslog.com/"

BRANCH="8-stable"

if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/rsyslog/${PN}.git"

Expand Down Expand Up @@ -307,29 +305,29 @@ src_install() {
local DOCS=(
AUTHORS
ChangeLog
"${FILESDIR}"/${BRANCH}/README.gentoo
"${FILESDIR}"/README.gentoo
)

use doc && local HTML_DOCS=( "${S}/docs/build/." )

default

newconfd "${FILESDIR}/${BRANCH}/${PN}.confd-r1" ${PN}
newinitd "${FILESDIR}/${BRANCH}/${PN}.initd-r1" ${PN}
newconfd "${FILESDIR}/${PN}.confd-r1" ${PN}
newinitd "${FILESDIR}/${PN}.initd-r1" ${PN}

keepdir /var/empty/dev
keepdir /var/spool/${PN}
keepdir /etc/ssl/${PN}
keepdir /etc/${PN}.d

insinto /etc
newins "${FILESDIR}/${BRANCH}/${PN}.conf" ${PN}.conf
newins "${FILESDIR}/${PN}.conf" ${PN}.conf

insinto /etc/rsyslog.d/
newins "${FILESDIR}/${BRANCH}/50-default-r1.conf" 50-default.conf
newins "${FILESDIR}/50-default-r1.conf" 50-default.conf

insinto /etc/logrotate.d/
newins "${FILESDIR}/${BRANCH}/${PN}-r1.logrotate" ${PN}
newins "${FILESDIR}/${PN}-r1.logrotate" ${PN}

if use mysql; then
insinto /usr/share/doc/${PF}/scripts/mysql
Expand Down

0 comments on commit 8850a1f

Please sign in to comment.