summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2013-04-13 22:49:21 +0000
committerMike Gilbert <floppym@gentoo.org>2013-04-13 22:49:21 +0000
commitaa7b663ef92a70615bc012f5241907f867f5c87f (patch)
tree4a3baf6dd27d39261c74b34802d190ba74fa389b /eclass
parentFix unnecessary $(). (diff)
downloadgentoo-2-aa7b663ef92a70615bc012f5241907f867f5c87f.tar.gz
gentoo-2-aa7b663ef92a70615bc012f5241907f867f5c87f.tar.bz2
gentoo-2-aa7b663ef92a70615bc012f5241907f867f5c87f.zip
Replace basename usage with a shell parameter replacement.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/systemd.eclass4
2 files changed, 6 insertions, 3 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index d6df9d70fc58..8069ba5c8917 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.787 2013/04/13 22:35:53 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.788 2013/04/13 22:49:21 floppym Exp $
+
+ 13 Apr 2013; Mike Gilbert <floppym@gentoo.org> systemd.eclass:
+ Replace basename usage with a shell parameter replacement.
13 Apr 2013; Michał Górny <mgorny@gentoo.org> systemd.eclass:
Use pkg-config to query systemd directories.
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 329d6cc63e45..166c7beadd13 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.24 2013/04/13 22:36:51 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.25 2013/04/13 22:49:21 floppym Exp $
# @ECLASS: systemd.eclass
# @MAINTAINER:
@@ -179,7 +179,7 @@ systemd_enable_service() {
local target=${1}
local service=${2}
local ud=$(_systemd_get_unitdir)
- local destname=$(basename "${service}")
+ local destname=${service##*/}
dodir "${ud}"/"${target}".wants && \
dosym ../"${service}" "${ud}"/"${target}".wants/"${destname}"