Factorize do-install and several variables.
Fix MASTER_SITES and add the Fedora "updates" repository.
This commit is contained in:
parent
7531d4bb00
commit
30ea374438
@ -1,8 +1,13 @@
|
||||
# $OpenBSD: Makefile.inc,v 1.6 2012/10/11 10:16:29 robert Exp $
|
||||
# $OpenBSD: Makefile.inc,v 1.7 2012/10/11 12:00:46 ajacoutot Exp $
|
||||
|
||||
# Note that PLIST with shared libs requires the following cleaning:
|
||||
# perl -pi -e "s,^\@lib ,," pkg/PLIST
|
||||
|
||||
ONLY_FOR_ARCHS= i386
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
FEDORA_V= 10
|
||||
|
||||
CATEGORIES= emulators
|
||||
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
@ -10,12 +15,14 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITE_FEDORA= http://critical.ch/distfiles/rpm/i386/fedora/ \
|
||||
http://energy.critical.ch/distfiles/rpm/i386/fedora/ \
|
||||
http://snow.critical.ch/distfiles/rpm/i386/fedora/ \
|
||||
http://www.bluestop.org/distfiles/rpm/i386/fedora/
|
||||
MASTER_SITE_FEDORA= http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/${FEDORA_V}/Fedora/i386/os/Packages/
|
||||
MASTER_SITE_FEDORA0= http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/${FEDORA_V}/i386/
|
||||
|
||||
MASTER_SITE_FEDORA0= http://ftp-stud.hs-esslingen.de/pub/Mirrors/archive.fedoraproject.org/fedora/linux/releases/
|
||||
MASTER_SITES ?= ${MASTER_SITE_FEDORA}
|
||||
MASTER_SITES0 ?= ${MASTER_SITE_FEDORA0}
|
||||
|
||||
DISTFILES ?= ${RPMS}
|
||||
RPMDIR ?= ${FULLDISTDIR}
|
||||
|
||||
DIST_SUBDIR= rpm
|
||||
EXTRACT_ONLY=
|
||||
@ -27,3 +34,27 @@ NO_BUILD= Yes
|
||||
NO_REGRESS= Yes
|
||||
|
||||
FEDORADIR= ${PREFIX}/emul/fedora
|
||||
|
||||
.if !target(do-install)
|
||||
do-install:
|
||||
${INSTALL_DATA_DIR} ${FEDORADIR}
|
||||
.for rpm in ${RPMS:S/:0//}
|
||||
cd ${FEDORADIR}; rpm2cpio ${RPMDIR}/${rpm} | ${LOCALBASE}/bin/gcpio -id
|
||||
.endfor
|
||||
|
||||
# get rid of some unnecessary files and directories
|
||||
.for D in ${REMOVE_DIRS}
|
||||
rm -rf ${FEDORADIR}/${D}
|
||||
.endfor
|
||||
.for F in ${REMOVE_FILES}
|
||||
rm -f ${FEDORADIR}/${F}
|
||||
.endfor
|
||||
.for D in ${ADD_DIRS}
|
||||
mkdir -p ${FEDORADIR}/${D}
|
||||
.endfor
|
||||
|
||||
# better safe than sorry
|
||||
find ${FEDORADIR} -perm -4000 | xargs -r chmod u-s
|
||||
find ${FEDORADIR} \( -user 37 -o -user 5041 -o -group 37 \) -print | \
|
||||
xargs -r chown -h root:wheel
|
||||
.endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user