/[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.5 Revision 1.6
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.5 2012/10/02 10:52:31 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/obs-service.eclass,v 1.6 2012/11/15 19:49:34 scarabeus 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.
51 51
52DESCRIPTION="Open Build Service client module - ${OBS_SERVICE_NAME} service" 52DESCRIPTION="Open Build Service client module - ${OBS_SERVICE_NAME} service"
53 53
54inherit obs-download 54inherit obs-download
55 55
56SRC_URI="${OBS_URI}/${OBS_SERVICE_NAME}" 56# As it aint versioned at all use arrows to deal with it
57SRC_URI+=" ${OBS_URI}/${OBS_SERVICE_NAME}.service" 57SRC_URI="${OBS_URI}/${OBS_SERVICE_NAME} -> ${OBS_SERVICE_NAME}-${PV}"
58SRC_URI+=" ${OBS_URI}/${OBS_SERVICE_NAME}.service -> ${OBS_SERVICE_NAME}-${PV}.service"
58 59
59for i in ${ADDITIONAL_FILES}; do 60for i in ${ADDITIONAL_FILES}; do
60 SRC_URI+=" ${OBS_URI}/${i}" 61 SRC_URI+=" ${OBS_URI}/${i}"
61done 62done
62 63
86# Does the installation of the downloaded files. 87# Does the installation of the downloaded files.
87obs-service_src_install() { 88obs-service_src_install() {
88 debug-print-function ${FUNCNAME} "$@" 89 debug-print-function ${FUNCNAME} "$@"
89 debug-print "Installing service \"${OBS_SERVICE_NAME}\"" 90 debug-print "Installing service \"${OBS_SERVICE_NAME}\""
90 exeinto /usr/lib/obs/service 91 exeinto /usr/lib/obs/service
91 doexe "${S}"/${OBS_SERVICE_NAME} 92 newexe "${S}"/${OBS_SERVICE_NAME}-${PV} "${S}"/${OBS_SERVICE_NAME}
92 insinto /usr/lib/obs/service 93 insinto /usr/lib/obs/service
93 doins "${S}"/${OBS_SERVICE_NAME}.service 94 newins "${S}"/${OBS_SERVICE_NAME}-${PV}.service "${S}"/${OBS_SERVICE_NAME}.service
94 if [[ -n ${ADDITIONAL_FILES} ]]; then 95 if [[ -n ${ADDITIONAL_FILES} ]]; then
95 debug-print "Installing following additional files:" 96 debug-print "Installing following additional files:"
96 debug-print " ${ADDITIONAL_FILES}" 97 debug-print " ${ADDITIONAL_FILES}"
97 exeinto /usr/lib/obs/service/${OBS_SERVICE_NAME}.files 98 exeinto /usr/lib/obs/service/${OBS_SERVICE_NAME}.files
98 for i in ${ADDITIONAL_FILES}; do 99 for i in ${ADDITIONAL_FILES}; do

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20