public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-i18n/yaskkserv/files/, app-i18n/yaskkserv/
@ 2017-06-25  6:19 Akinori Hattori
  0 siblings, 0 replies; only message in thread
From: Akinori Hattori @ 2017-06-25  6:19 UTC (permalink / raw
  To: gentoo-commits

commit:     7f5027649b1a38ab7ed633071e3cc12e344e8d68
Author:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 25 06:19:24 2017 +0000
Commit:     Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Sun Jun 25 06:19:24 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f502764

app-i18n/yaskkserv: avoid phase function call

Gentoo-Bug: 596620

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 app-i18n/yaskkserv/files/yaskkserv.initd  |  6 +++---
 app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild | 32 +++++++++++++++++--------------
 2 files changed, 21 insertions(+), 17 deletions(-)

diff --git a/app-i18n/yaskkserv/files/yaskkserv.initd b/app-i18n/yaskkserv/files/yaskkserv.initd
index 7e081d1938b..b9ae738b92a 100644
--- a/app-i18n/yaskkserv/files/yaskkserv.initd
+++ b/app-i18n/yaskkserv/files/yaskkserv.initd
@@ -1,11 +1,11 @@
 #!/sbin/openrc-run
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-command=/usr/sbin/${SVCNAME}_${YASKKSERV_SERVER_TYPE}
+command="/usr/sbin/${SVCNAME}_${YASKKSERV_SERVER_TYPE}"
 command_args="--no-daemonize ${YASKKSERV_OPTS}"
 command_background="true"
-pidfile=${pidfile:-/run/${SVCNAME}.pid}
+pidfile="${pidfile:-/run/${SVCNAME}.pid}"
 
 depend() {
 	need net

diff --git a/app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild b/app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild
index 2c06cd1815e..0d0ae48356c 100644
--- a/app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild
+++ b/app-i18n/yaskkserv/yaskkserv-1.1.0.ebuild
@@ -48,20 +48,7 @@ src_install() {
 	systemd_dounit "${FILESDIR}"/${PN}.service
 }
 
-pkg_postinst() {
-	pkg_config
-
-	elog "You need to run:"
-	elog "  emerge --config =${CATEGORY}/${PF}"
-	elog "after updating app-i18n/skk-jisyo from next time."
-}
-
-pkg_postrm() {
-	rm -f "${ROOT}"/usr/share/skk/SKK-JISYO.*.${PN}
-	rmdir "${ROOT}"/usr/share/skk 2>/dev/null
-}
-
-pkg_config() {
+yaskkserv_update() {
 	local f
 	for f in "${ROOT}"/usr/share/skk/SKK-JISYO.*; do
 		case ${f} in
@@ -76,3 +63,20 @@ pkg_config() {
 		esac
 	done
 }
+
+pkg_postinst() {
+	yaskkserv_update
+
+	elog "You need to run:"
+	elog "  emerge --config =${CATEGORY}/${PF}"
+	elog "after updating app-i18n/skk-jisyo from next time."
+}
+
+pkg_postrm() {
+	rm -f "${ROOT}"/usr/share/skk/SKK-JISYO.*.${PN}
+	rmdir "${ROOT}"/usr/share/skk 2>/dev/null
+}
+
+pkg_config() {
+	yaskkserv_update
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-25  6:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-25  6:19 [gentoo-commits] repo/gentoo:master commit in: app-i18n/yaskkserv/files/, app-i18n/yaskkserv/ Akinori Hattori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox