summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-01-05 23:20:02 +0000
committerMichał Górny <mgorny@gentoo.org>2012-01-05 23:20:02 +0000
commit25e265888a5359376f7d5289344e9b36cce40be1 (patch)
treeb16c8b06f7377e0e052c136bb8596bfb1fec0d22 /eclass/systemd.eclass
parentVersion bump (diff)
downloadgentoo-2-25e265888a5359376f7d5289344e9b36cce40be1.tar.gz
gentoo-2-25e265888a5359376f7d5289344e9b36cce40be1.tar.bz2
gentoo-2-25e265888a5359376f7d5289344e9b36cce40be1.zip
Fix use of dosym with directory destination.
Diffstat (limited to 'eclass/systemd.eclass')
-rw-r--r--eclass/systemd.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/systemd.eclass b/eclass/systemd.eclass
index 4d8e3e1e8563..6b94a558c2d0 100644
--- a/eclass/systemd.eclass
+++ b/eclass/systemd.eclass
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.9 2011/09/17 13:48:21 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/systemd.eclass,v 1.10 2012/01/05 23:20:02 mgorny Exp $
# @ECLASS: systemd.eclass
# @MAINTAINER:
@@ -105,9 +105,10 @@ systemd_enable_service() {
local target=${1}
local service=${2}
local ud=$(_systemd_get_unitdir)
+ local destname=$(basename "${service}")
dodir "${ud}"/"${target}".wants && \
- dosym ../"${service}" "${ud}"/"${target}".wants
+ dosym ../"${service}" "${ud}"/"${target}".wants/"${destname}"
}
# @FUNCTION: systemd_with_unitdir