add bvm mujs

This commit is contained in:
ziggi
2020-02-13 09:46:44 +00:00
parent dd4be58a70
commit ff60da8e49
9 changed files with 123 additions and 0 deletions

33
_alpha/bvm/Makefile Normal file
View File

@@ -0,0 +1,33 @@
# Created by: Qiang Guo <guoqiang_cn@126.com>
# $FreeBSD: head/sysutils/bvm/Makefile 494673 2019-03-05 02:55:20Z swills $
PORTNAME= bvm
PORTVERSION= 1.2.4
CATEGORIES= sysutils
MAINTAINER= guoqiang_cn@126.com
COMMENT= Bhyve VM Manager
ONLY_FOR_ARCHS= amd64
ONLY_FOR_ARCHS_REASON= Bhyve VM Manager is required to be built on a 64bit machine
RUN_DEPENDS= bhyve-firmware>0:sysutils/bhyve-firmware \
grub-bhyve:sysutils/grub2-bhyve \
tmux:sysutils/tmux
USE_GITHUB= yes
GH_ACCOUNT= bigdragonsoft
BUILD_WRKSRC= ${WRKSRC}/src
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/bvm
${INSTALL_DATA} ${WRKSRC}/conf/bvm.conf ${STAGEDIR}${PREFIX}/etc/bvm/bvm.conf.sample
${INSTALL_DATA} ${WRKSRC}/conf/nat.conf ${STAGEDIR}${PREFIX}/etc/bvm/nat.conf.sample
${INSTALL_DATA} ${WRKSRC}/conf/switch.conf ${STAGEDIR}${PREFIX}/etc/bvm/switch.conf.sample
${INSTALL_SCRIPT} ${WRKSRC}/conf/bvmd ${STAGEDIR}${PREFIX}/etc/rc.d/
${INSTALL_PROGRAM} ${WRKSRC}/src/bvm ${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/src/bvmb ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/bvm.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
.include <bsd.port.mk>

3
_alpha/bvm/distinfo Normal file
View File

@@ -0,0 +1,3 @@
TIMESTAMP = 1551663917
SHA256 (bigdragonsoft-bvm-1.2.4_GH0.tar.gz) = 4802b22f3995c13f327160553fcfc129b1ef21a9c271b5769d806cf6a3891f40
SIZE (bigdragonsoft-bvm-1.2.4_GH0.tar.gz) = 62646

11
_alpha/bvm/pkg-descr Normal file
View File

@@ -0,0 +1,11 @@
The BVM is a Bhyve virtual machine management tool
based on FreeBSD that allows you to easily manage virtual machines.
1. The supported operating systems are:
FreeBSD,OpenBSD,NetBSD,Debian,OpenSuse,Ubuntu Windows10 etc.
2. Supports multiple network cards and multiple hard disks.
3. There are two kinds of network modes: Bridged and NAT
4. Support grub and uefi boot
5. Support for ZFS
WWW: https://github.com/bigdragonsoft/bvm

7
_alpha/bvm/pkg-plist Normal file
View File

@@ -0,0 +1,7 @@
bin/bvm
bin/bvmb
@sample %%ETCDIR%%/bvm.conf.sample
@sample %%ETCDIR%%/nat.conf.sample
@sample %%ETCDIR%%/switch.conf.sample
etc/rc.d/bvmd
man/man8/bvm.8.gz

27
_alpha/mujs/Makefile Normal file
View File

@@ -0,0 +1,27 @@
# $FreeBSD: head/lang/mujs/Makefile 523250 2020-01-16 17:11:32Z yuri $
PORTNAME= mujs
DISTVERSION= 1.0.6-16
DISTVERSIONSUFFIX= -gfe71080
CATEGORIES= lang devel
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${PORTNAME}/commit/
PATCHFILES= d9a1f4c57f976eeb67d877101fcdca89ecc047ed.patch:-p1 # Enable readline on FreeBSD
MAINTAINER= yuri@FreeBSD.org
COMMENT= Embeddable Javascript interpreter in C
USES= compiler:c11 gmake readline # c11 is induced by the FreeBSD headers via isnan(3), etc, otherwise the project is all c99 code
USE_GITHUB= yes
GH_ACCOUNT= ccxvii
USE_LDCONFIG= yes
ALL_TARGET= shared static
INSTALL_TARGET= install-shared install-static
#32BIT_DESC= 32-bit address space to allow for larger programs
#32BIT_MAKE_ARGS= XCFLAGS="-DJS_INSTRUCTION=int"
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmujs.so
.include <bsd.port.mk>

5
_alpha/mujs/distinfo Normal file
View File

@@ -0,0 +1,5 @@
TIMESTAMP = 1579194661
SHA256 (ccxvii-mujs-1.0.6-16-gfe71080_GH0.tar.gz) = 77315f8d5ec59ff2747e6d1c5d0c7161f1310a951d6d4ab5abef808e4e3655cc
SIZE (ccxvii-mujs-1.0.6-16-gfe71080_GH0.tar.gz) = 121980
SHA256 (d9a1f4c57f976eeb67d877101fcdca89ecc047ed.patch) = de236ceb1d7df002bf0930ff31f07f58260e0faf780edef72f05d478185cb279
SIZE (d9a1f4c57f976eeb67d877101fcdca89ecc047ed.patch) = 589

View File

@@ -0,0 +1,21 @@
--- Makefile.orig 2019-03-15 16:38:36 UTC
+++ Makefile
@@ -15,7 +15,8 @@ endif
# Compiler flags for various configurations:
-CFLAGS := -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
+# change to c11 on FreeBSD because FreeBSD headers induce c11 through isnan(3), etc.
+CFLAGS := -std=c11 -pedantic -Wall -Wextra -Wno-unused-parameter
ifeq "$(CC)" "clang"
CFLAGS += -Wunreachable-code
@@ -31,7 +32,7 @@ else ifeq "$(build)" "sanitize"
CFLAGS += -pipe -g -fsanitize=address -fno-omit-frame-pointer
LDFLAGS += -fsanitize=address
else
- CFLAGS += -Os
+ CFLAGS += -O3 # use -O3 on FreeBSD instead of -Os because this isn't an embedded platform
LDFLAGS += -Wl,-s
endif

11
_alpha/mujs/pkg-descr Normal file
View File

@@ -0,0 +1,11 @@
MuJS is a lightweight Javascript interpreter designed for embedding in
other software to extend them with scripting capabilities.
MuJS was designed with a focus on small size, correctness, and simplicity.
It is written in portable C and implements ECMAScript as specified by ECMA-262.
The interface for binding with native code is designed to be as simple as
possible to use, and is very similar to Lua. There is no need to interact with
byzantine C++ template mechanisms, or worry about marking and unmarking garbage
collection roots, or wrestle with obscure build systems.
WWW: https://mujs.com/

5
_alpha/mujs/pkg-plist Normal file
View File

@@ -0,0 +1,5 @@
bin/mujs
include/mujs.h
lib/libmujs.a
lib/libmujs.so
lib/pkgconfig/mujs.pc