mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 01:09:24 -04:00
- Update to r234349 of svn.
- But build on OSREL=8.2 failed. So stick old rev on 8.2. - Add support for 8.3-REL. - Copy only required part of source tree [1]. Suggested by: Richard Yao <ryao@cs.stonybrook.edu> from Gentoo [1]
This commit is contained in:
parent
5b2e172d54
commit
b039fb8128
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=295254
3 changed files with 19 additions and 6 deletions
|
@ -13,14 +13,16 @@ MASTER_SITE_SUBDIR= kuriyama
|
||||||
PKGNAMESUFFIX= -kmod
|
PKGNAMESUFFIX= -kmod
|
||||||
|
|
||||||
MAINTAINER= kuriyama@FreeBSD.org
|
MAINTAINER= kuriyama@FreeBSD.org
|
||||||
COMMENT= virtio kernel modules port for 8.2/9.0
|
COMMENT= virtio kernel modules port for 8.[23]/9.0
|
||||||
|
|
||||||
ONLY_FOR_ARCHS= amd64 i386
|
ONLY_FOR_ARCHS= amd64 i386
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}
|
WRKSRC= ${WRKDIR}
|
||||||
SVN_REV= 228301
|
SVN_REV= 234349
|
||||||
KMODDIR?= /boot/modules
|
KMODDIR?= /boot/modules
|
||||||
PLIST_SUB= KMODDIR=${KMODDIR:C,^/,,}
|
PLIST_SUB= KMODDIR=${KMODDIR:C,^/,,}
|
||||||
|
NEEDSUBDIRS= amd64 conf contrib dev/pci geom i386 kern net netinet netinet6 \
|
||||||
|
sys tools vm x86
|
||||||
|
|
||||||
.if !exists(${SRC_BASE}/sys/Makefile)
|
.if !exists(${SRC_BASE}/sys/Makefile)
|
||||||
IGNORE= requires kernel source to be installed
|
IGNORE= requires kernel source to be installed
|
||||||
|
@ -28,13 +30,20 @@ IGNORE= requires kernel source to be installed
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if ${OSREL} != "8.2" && ${OSREL} != "9.0"
|
.if ${OSREL} != "8.2" && ${OSREL} != "8.3" && ${OSREL} != "9.0"
|
||||||
IGNORE= not supported $${OSREL} (${OSREL})
|
IGNORE= not supported $${OSREL} (${OSREL})
|
||||||
.endif
|
.endif
|
||||||
|
.if ${OSREL} == "8.2"
|
||||||
|
SVN_REV= 228301
|
||||||
|
#SVN_REV= 232470
|
||||||
|
#SVN_REV= 228301
|
||||||
|
.endif
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
cd ${WRKSRC} && ${MKDIR} tmp && ${MV} dev modules tmp/
|
cd ${WRKSRC} && ${MKDIR} sys/dev tmp && ${MV} dev modules tmp/
|
||||||
${CP} -Rp ${SRC_BASE}/sys ${WRKSRC}/
|
for d in ${NEEDSUBDIRS}; do \
|
||||||
|
${CP} -Rp ${SRC_BASE}/sys/${d} ${WRKSRC}/sys/${d}; \
|
||||||
|
done
|
||||||
${CP} -Rp ${WRKSRC}/tmp/* ${WRKSRC}/sys/
|
${CP} -Rp ${WRKSRC}/tmp/* ${WRKSRC}/sys/
|
||||||
|
|
||||||
do-build:
|
do-build:
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
|
SHA256 (virtio-0.234349.tar.gz) = a776b690c3936f859b4bec3e4157ee6f64789ded18388ec948b5828ba8c9483d
|
||||||
|
SIZE (virtio-0.234349.tar.gz) = 47044
|
||||||
|
SHA256 (virtio-0.232470.tar.gz) = d9f933271977b4d63cfcc591291534b1b313b0a16e6e878bfa47f369b88681e2
|
||||||
|
SIZE (virtio-0.232470.tar.gz) = 47396
|
||||||
SHA256 (virtio-0.228301.tar.gz) = 022b05ce98a88096aacc331fb7ba122d935432a87100fcba6a3b3d7e9e9aa0d6
|
SHA256 (virtio-0.228301.tar.gz) = 022b05ce98a88096aacc331fb7ba122d935432a87100fcba6a3b3d7e9e9aa0d6
|
||||||
SIZE (virtio-0.228301.tar.gz) = 47262
|
SIZE (virtio-0.228301.tar.gz) = 47262
|
||||||
|
|
|
@ -9,7 +9,7 @@ virtio_balloon_load="YES"
|
||||||
and edit fstab and interface config in rc.conf:
|
and edit fstab and interface config in rc.conf:
|
||||||
|
|
||||||
# sed -i.bak -Ee 's|/dev/ada?|/dev/vtbd|' /etc/fstab
|
# sed -i.bak -Ee 's|/dev/ada?|/dev/vtbd|' /etc/fstab
|
||||||
# sed -i.bak -e 's|em0|vtnet0|' /etc/rc.conf
|
# echo 'ifconfig_vtnet0_name="em0"' >> /etc/rc.conf
|
||||||
|
|
||||||
and enable virtio devices in host's domain.xml:
|
and enable virtio devices in host's domain.xml:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue