| 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.6 2012/11/15 19:49:34 scarabeus Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/obs-service.eclass,v 1.7 2012/11/15 19:52:55 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. |
| … | |
… | |
| 87 | # Does the installation of the downloaded files. |
87 | # Does the installation of the downloaded files. |
| 88 | obs-service_src_install() { |
88 | obs-service_src_install() { |
| 89 | debug-print-function ${FUNCNAME} "$@" |
89 | debug-print-function ${FUNCNAME} "$@" |
| 90 | debug-print "Installing service \"${OBS_SERVICE_NAME}\"" |
90 | debug-print "Installing service \"${OBS_SERVICE_NAME}\"" |
| 91 | exeinto /usr/lib/obs/service |
91 | exeinto /usr/lib/obs/service |
| 92 | newexe "${S}"/${OBS_SERVICE_NAME}-${PV} "${S}"/${OBS_SERVICE_NAME} |
92 | newexe "${S}"/${OBS_SERVICE_NAME}-${PV} ${OBS_SERVICE_NAME} |
| 93 | insinto /usr/lib/obs/service |
93 | insinto /usr/lib/obs/service |
| 94 | newins "${S}"/${OBS_SERVICE_NAME}-${PV}.service "${S}"/${OBS_SERVICE_NAME}.service |
94 | newins "${S}"/${OBS_SERVICE_NAME}-${PV}.service ${OBS_SERVICE_NAME}.service |
| 95 | if [[ -n ${ADDITIONAL_FILES} ]]; then |
95 | if [[ -n ${ADDITIONAL_FILES} ]]; then |
| 96 | debug-print "Installing following additional files:" |
96 | debug-print "Installing following additional files:" |
| 97 | debug-print " ${ADDITIONAL_FILES}" |
97 | debug-print " ${ADDITIONAL_FILES}" |
| 98 | exeinto /usr/lib/obs/service/${OBS_SERVICE_NAME}.files |
98 | exeinto /usr/lib/obs/service/${OBS_SERVICE_NAME}.files |
| 99 | for i in ${ADDITIONAL_FILES}; do |
99 | for i in ${ADDITIONAL_FILES}; do |