/[gentoo-x86]/eclass/obs-service.eclass
Gentoo

Diff of /eclass/obs-service.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/obs-service.eclass,v 1.9 2013/01/31 09:26:42 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/obs-service.eclass,v 1.10 2013/03/18 10:07:44 miska Exp $
4 4
5# @ECLASS: obs-service.eclass 5# @ECLASS: obs-service.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# suse@gentoo.org 7# suse@gentoo.org
8# @BLURB: Reduces code duplication in the Open Build Service services. 8# @BLURB: Reduces code duplication in the Open Build Service services.
81# where suse-build is installed in Gentoo. 81# where suse-build is installed in Gentoo.
82obs-service_src_prepare() { 82obs-service_src_prepare() {
83 debug-print-function ${FUNCNAME} "$@" 83 debug-print-function ${FUNCNAME} "$@"
84 debug-print "Replacing all paths to find suse-build in Gentoo" 84 debug-print "Replacing all paths to find suse-build in Gentoo"
85 find "${S}" -type f -exec \ 85 find "${S}" -type f -exec \
86 sed -i 's|/usr/lib/build|/usr/share/suse-build|g' {} + 86 sed -i 's|/usr/lib/build|/usr/libexec/suse-build|g' {} +
87} 87}
88 88
89# @FUNCTION: obs-service_src_install 89# @FUNCTION: obs-service_src_install
90# @DESCRIPTION: 90# @DESCRIPTION:
91# Does the installation of the downloaded files. 91# Does the installation of the downloaded files.
92obs-service_src_install() { 92obs-service_src_install() {
93 debug-print-function ${FUNCNAME} "$@" 93 debug-print-function ${FUNCNAME} "$@"
94 debug-print "Installing service \"${OBS_SERVICE_NAME}\"" 94 debug-print "Installing service \"${OBS_SERVICE_NAME}\""
95 exeinto /usr/lib/obs/service 95 exeinto /usr/libexec/obs/service
96 newexe "${S}"/${OBS_SERVICE_NAME}-${PV} ${OBS_SERVICE_NAME} 96 newexe "${S}"/${OBS_SERVICE_NAME}-${PV} ${OBS_SERVICE_NAME}
97 insinto /usr/lib/obs/service 97 insinto /usr/libexec/obs/service
98 newins "${S}"/${OBS_SERVICE_NAME}-${PV}.service ${OBS_SERVICE_NAME}.service 98 newins "${S}"/${OBS_SERVICE_NAME}-${PV}.service ${OBS_SERVICE_NAME}.service
99 if [[ -n ${ADDITIONAL_FILES} ]]; then 99 if [[ -n ${ADDITIONAL_FILES} ]]; then
100 debug-print "Installing following additional files:" 100 debug-print "Installing following additional files:"
101 debug-print " ${ADDITIONAL_FILES}" 101 debug-print " ${ADDITIONAL_FILES}"
102 exeinto /usr/lib/obs/service/${OBS_SERVICE_NAME}.files 102 exeinto /usr/libexec/obs/service/${OBS_SERVICE_NAME}.files
103 for i in ${ADDITIONAL_FILES}; do 103 for i in ${ADDITIONAL_FILES}; do
104 newexe "${S}"/${i}-${PV} ${i} 104 newexe "${S}"/${i}-${PV} ${i}
105 done 105 done
106 fi 106 fi
107} 107}

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20