Page MenuHomeFreeBSD
Paste P444

Command-Line Input
ActivePublic

Authored by swills on Oct 16 2020, 8:50 PM.
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# emulators/virtfs-9p-kmod/distinfo
# emulators/virtfs-9p-kmod/Makefile
# emulators/virtfs-9p-kmod/pkg-descr
#
echo x - emulators/virtfs-9p-kmod/distinfo
sed 's/^X//' >emulators/virtfs-9p-kmod/distinfo << 'ea73ed6082b111d6e01628f80011a876'
XTIMESTAMP = 1602787397
XSHA256 (8c5ac1bed755804149afa00bf04853ec0c5bee1c.diff) = bbf01d954fd7392b0e9d984148ef4f10cf3a5e582acbc10c7efd5d819a838f32
XSIZE (8c5ac1bed755804149afa00bf04853ec0c5bee1c.diff) = 149901
ea73ed6082b111d6e01628f80011a876
echo x - emulators/virtfs-9p-kmod/Makefile
sed 's/^X//' >emulators/virtfs-9p-kmod/Makefile << '253bad3ce79aa0b0f352e9b9f1b7e244'
X# $FreeBSD$
X
XPORTNAME= virtfs-9p-kmod
XPORTVERSION= g20201015
XCATEGORIES= emulators
XMASTER_SITES= https://github.com/Juniper/virtfs/commit/
XDISTNAME= 8c5ac1bed755804149afa00bf04853ec0c5bee1c.diff
XEXTRACT_SUFX= # None
X
XMAINTAINER= swills@FreeBSD.org
XCOMMENT= Hack
X
XUSES= kmod
X
XPATCH_STRIP= -p1
XNO_WRKSUBDIR= yes
XCFLAGS+= -I${WRKDIR}/sys
XMAKE_ARGS+= CWARNFLAGS="-Wno-format -Wno-error"
X
XPLIST_FILES= ${KMODDIR}/virtio_9pnet.ko ${KMODDIR}/virtio_9pfs.ko
X
Xdo-extract:
X @cd ${WRKDIR} && ${PATCH} ${PATCH_ARGS} < ${_DISTDIR}/${DISTNAME} > /dev/null 2>&1 || :
X @${FIND} ${WRKDIR} -type f -name '*.orig' -delete
X @${FIND} ${WRKDIR} -type f -name '*.rej' -delete
X @${FIND} ${WRKDIR} -type f -name '*.depend' -delete
X
X.include <bsd.port.options.mk>
X
X.if ${OPSYS} != FreeBSD
XIGNORE= only supported on FreeBSD
X.endif
X
X# too lazy to get this right
X.if ${OSVERSION} > 1300000
Xpost-patch:
X @${REINPLACE_CMD} -i '' -e 's/VI_DOOMED/VIRF_DOOMED/' ${WRKDIR}/sys/dev/virtio/9pfs/virtfs_vnops.c
X @${REINPLACE_CMD} -i '' -e 's/dvp, 0/ dvp/' ${WRKDIR}/sys/dev/virtio/9pfs/virtfs_vnops.c
X @${REINPLACE_CMD} -i '' -e 's/cred, NULL/cred/' ${WRKDIR}/sys/dev/virtio/9pfs/virtfs_vnops.c
X @${REINPLACE_CMD} -i '' -e 's/PRIV_VFS_CHOWN, 0/PRIV_VFS_CHOWN/' ${WRKDIR}/sys/dev/virtio/9pfs/virtfs_vnops.c
X @${REINPLACE_CMD} -i '' -e 's/PRIV_VFS_RETAINSUGID, 0/PRIV_VFS_RETAINSUGID/' ${WRKDIR}/sys/dev/virtio/9pfs/virtfs_vnops.c
X @${REINPLACE_CMD} -i '' -e 's/PRIV_VFS_STICKYFILE, 0/PRIV_VFS_STICKYFILE/' ${WRKDIR}/sys/dev/virtio/9pfs/virtfs_vnops.c
X @${REINPLACE_CMD} -i '' -e 's/PRIV_VFS_SETGID, 0/PRIV_VFS_SETGID/' ${WRKDIR}/sys/dev/virtio/9pfs/virtfs_vnops.c
X @${REINPLACE_CMD} -i '' -e 's/PRIV_VFS_ADMIN, 0/PRIV_VFS_ADMIN/' ${WRKDIR}/sys/dev/virtio/9pfs/virtfs_vnops.c
X @${REINPLACE_CMD} -i '' -e 's/PRIV_VFS_SYSFLAGS, 0/PRIV_VFS_SYSFLAGS/' ${WRKDIR}/sys/dev/virtio/9pfs/virtfs_vnops.c
X.endif
X
Xdo-build:
X cd ${WRKDIR}/sys/modules/virtio/9pnet && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS:N${DESTDIRNAME}=*}
X cd ${WRKDIR}/sys/modules/virtio/9pfs && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS:N${DESTDIRNAME}=*}
X
Xdo-install:
X ${INSTALL_KLD} ${WRKDIR}/sys/modules/virtio/9pnet/virtio_9pnet.ko ${STAGEDIR}${KMODDIR}
X ${INSTALL_KLD} ${WRKDIR}/sys/modules/virtio/9pfs/virtio_9pfs.ko ${STAGEDIR}${KMODDIR}
X
X.include <bsd.port.mk>
253bad3ce79aa0b0f352e9b9f1b7e244
echo x - emulators/virtfs-9p-kmod/pkg-descr
sed 's/^X//' >emulators/virtfs-9p-kmod/pkg-descr << 'ea2bbbb1a7a09f22a87bf1701261dea6'
XWWW: https://github.com/Juniper/virtfs/compare/jnpr/virtfs
ea2bbbb1a7a09f22a87bf1701261dea6
exit