look for rpms in the opensuse "update" repository

as well as the initial-release repository.
This commit is contained in:
chs 2010-11-02 16:49:59 +00:00
parent e62d9250b0
commit 205644cb11

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.1.1.1 2010/09/24 01:28:06 chs Exp $
# $NetBSD: Makefile.common,v 1.2 2010/11/02 16:49:59 chs Exp $
SUSE_PKG= yes
SUSE_VERSION= 11.3
@ -27,15 +27,13 @@ _SUSE_ARCH= ${_SUSE_ARCH.${EMUL_ARCH}}
SUSE_ARCH= ${_SUSE_ARCH}
_SUSE_FTP_SUBDIR= distribution/${SUSE_VERSION}/repo/oss/suse/${SUSE_ARCH}/
_SUSE_FTP_SUBDIR_UPD= suse/update/${SUSE_VERSION}/rpm/${SUSE_ARCH}/
_SUSE_FTP_SUBDIR_UPD= update/${SUSE_VERSION}/rpm/${SUSE_ARCH}/
MASTER_SITE_SUSE_${SUSE_VERSION}= \
http://download.opensuse.org/distribution/${SUSE_VERSION}/repo/oss/suse/${SUSE_ARCH}/
http://download.opensuse.org/${_SUSE_FTP_SUBDIR}
# http://opensuse.berkeley.edu/opensuse/${_SUSE_FTP_SUBDIR}
MASTER_SITE_SUSE_${SUSE_VERSION}_UPD= \
http://download.opensuse.org/distribution/${SUSE_VERSION}/repo/oss/suse/${SUSE_ARCH}/
MASTER_SITE_SUSE_${SUSE_VERSION}_UPD= \
http://download.opensuse.org/${_SUSE_FTP_SUBDIR_UPD}
MASTER_SITES?= ${MASTER_SITE_SUSE_${SUSE_VERSION}}
DIST_SUBDIR?= suse${SUSE_VERSION:S/.//}/${SUSE_ARCH}
@ -78,7 +76,9 @@ FILES_SUBST+= LINUX_LIBSUBDIR=${LINUX_LIBSUBDIR:Q}
.if defined(DISTFILES) && !empty(DISTFILES)
. for fetchfile in ${DISTFILES}
. if "${fetchfile:C/.[^.]*\.rpm$//:C/^.*-//g:M*.*}" != ""
SITES.${fetchfile:T:S/=/--/}?= ${MASTER_SITE_SUSE_${SUSE_VERSION}_UPD}
SITES.${fetchfile:T:S/=/--/}?= \
${MASTER_SITE_SUSE_${SUSE_VERSION}} \
${MASTER_SITE_SUSE_${SUSE_VERSION}_UPD}
. endif
. endfor
.endif