Add www/oneshot, First-come-first-serve single-fire HTTP server
PR: 247584 Submitted by: Lewis Cook <vulcan@wired.sh>
This commit is contained in:
parent
d36423a102
commit
0f7286c948
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=540691
@ -462,6 +462,7 @@
|
||||
SUBDIR += npm-node12
|
||||
SUBDIR += nspluginwrapper
|
||||
SUBDIR += obhttpd
|
||||
SUBDIR += oneshot
|
||||
SUBDIR += onionbalance
|
||||
SUBDIR += onionshare
|
||||
SUBDIR += opencart
|
||||
|
60
www/oneshot/Makefile
Normal file
60
www/oneshot/Makefile
Normal file
@ -0,0 +1,60 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= oneshot
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.0.0
|
||||
CATEGORIES= www
|
||||
|
||||
MAINTAINER= vulcan@wired.sh
|
||||
COMMENT= First-come-first-serve single-fire HTTP server
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= go:modules
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= raphaelreyna
|
||||
GH_TUPLE= cenkalti:backoff:v2.2.1:cenkalti_backoff/vendor/github.com/cenkalti/backoff \
|
||||
cpuguy83:go-md2man:v2.0.0:cpuguy83_go_md2man/vendor/github.com/cpuguy83/go-md2man/v2 \
|
||||
go-yaml:yaml:v2.2.2:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
|
||||
golang:crypto:87dc89f01550:golang_crypto/vendor/golang.org/x/crypto \
|
||||
golang:net:627f9648deb9:golang_net/vendor/golang.org/x/net \
|
||||
golang:sys:85ca7c5b95cd:golang_sys/vendor/golang.org/x/sys \
|
||||
gorilla:mux:v1.7.4:gorilla_mux/vendor/github.com/gorilla/mux \
|
||||
grandcat:zeroconf:v1.0.0:grandcat_zeroconf/vendor/github.com/grandcat/zeroconf \
|
||||
inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \
|
||||
miekg:dns:v1.1.27:miekg_dns/vendor/github.com/miekg/dns \
|
||||
raphaelreyna:ez-cgi:v0.7.3:raphaelreyna_ez_cgi/vendor/github.com/raphaelreyna/ez-cgi \
|
||||
russross:blackfriday:v2.0.1:russross_blackfriday/vendor/github.com/russross/blackfriday/v2 \
|
||||
shurcooL:sanitized_anchor_name:v1.0.0:shurcool_sanitized_anchor_name/vendor/github.com/shurcooL/sanitized_anchor_name \
|
||||
spf13:cobra:v1.0.0:spf13_cobra/vendor/github.com/spf13/cobra \
|
||||
spf13:pflag:v1.0.3:spf13_pflag/vendor/github.com/spf13/pflag
|
||||
|
||||
_BUILD_VERSION= ${DISTVERSIONFULL}
|
||||
_BUILD_DATE= $$(date +%d-%B-%Y)
|
||||
|
||||
GO_BUILDFLAGS= -ldflags "\
|
||||
-s -w \
|
||||
-X github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd.version=${_BUILD_VERSION} \
|
||||
-X github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd.date=${_BUILD_DATE}"
|
||||
|
||||
PORTDOCS= README.md
|
||||
|
||||
OPTIONS_DEFINE= DOCS MANPAGES
|
||||
OPTIONS_DEFAULT= MANPAGES
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
MANPAGES_DESC= Build and install auto-generated manpages
|
||||
|
||||
do-build-MANPAGES-on:
|
||||
cd ${GO_WRKSRC} && \
|
||||
${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} run ${GO_BUILDFLAGS} ./doc/man/main.go > ${PORTNAME}.1
|
||||
|
||||
post-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${GO_WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
post-install-MANPAGES-on:
|
||||
${INSTALL_MAN} ${GO_WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
33
www/oneshot/distinfo
Normal file
33
www/oneshot/distinfo
Normal file
@ -0,0 +1,33 @@
|
||||
TIMESTAMP = 1593253805
|
||||
SHA256 (raphaelreyna-oneshot-v1.0.0_GH0.tar.gz) = 5a4ee2e1e60adff18ef194e234032ad07b3bf7c757e4e45c948254c72b34e4a3
|
||||
SIZE (raphaelreyna-oneshot-v1.0.0_GH0.tar.gz) = 29126
|
||||
SHA256 (cenkalti-backoff-v2.2.1_GH0.tar.gz) = a2c29d0184e7afc415975cf2689723028d2686ffbb67fe0999ab1d691e6d16db
|
||||
SIZE (cenkalti-backoff-v2.2.1_GH0.tar.gz) = 8623
|
||||
SHA256 (cpuguy83-go-md2man-v2.0.0_GH0.tar.gz) = 50537880d42fc28b9c2e9aaa36b137349d43cc73d46436a499f8c928cd2fc576
|
||||
SIZE (cpuguy83-go-md2man-v2.0.0_GH0.tar.gz) = 52021
|
||||
SHA256 (go-yaml-yaml-v2.2.2_GH0.tar.gz) = 42c3e4ef9eca2860d22b3c6c5582c6c13fb4b417e5ebc1acc56ee5e2c4ddcaff
|
||||
SIZE (go-yaml-yaml-v2.2.2_GH0.tar.gz) = 70656
|
||||
SHA256 (golang-crypto-87dc89f01550_GH0.tar.gz) = d81e26d345c6cd9f132fd69547b14200603d6f3b50622ebceace32dfe456339b
|
||||
SIZE (golang-crypto-87dc89f01550_GH0.tar.gz) = 1709204
|
||||
SHA256 (golang-net-627f9648deb9_GH0.tar.gz) = a171ecd3ca1ca546c82806d7ddba1985b18da28530cb7479ea62d90ea1f81041
|
||||
SIZE (golang-net-627f9648deb9_GH0.tar.gz) = 1177189
|
||||
SHA256 (golang-sys-85ca7c5b95cd_GH0.tar.gz) = 06a5cbc446381df9653d4b410239720eea6b27461597de88f3e621664c811294
|
||||
SIZE (golang-sys-85ca7c5b95cd_GH0.tar.gz) = 1047239
|
||||
SHA256 (gorilla-mux-v1.7.4_GH0.tar.gz) = 56ea3c39b8c19360357970a4dcd717485f36ac7da9c6b5a107bd4b80848c4aee
|
||||
SIZE (gorilla-mux-v1.7.4_GH0.tar.gz) = 45437
|
||||
SHA256 (grandcat-zeroconf-v1.0.0_GH0.tar.gz) = 6d1453ee70fb244aa1ddf758e7f061e6a83c69e4b8c82962cdff37ce1faa7767
|
||||
SIZE (grandcat-zeroconf-v1.0.0_GH0.tar.gz) = 16115
|
||||
SHA256 (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 5edc7731c819c305623568e317aa253d342be3447def97f1fa9e10eb5ad819f6
|
||||
SIZE (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 2290
|
||||
SHA256 (miekg-dns-v1.1.27_GH0.tar.gz) = f0dfa99cea9f97063114f6680b1718364323ff817d49211de1a98464a498f672
|
||||
SIZE (miekg-dns-v1.1.27_GH0.tar.gz) = 183862
|
||||
SHA256 (raphaelreyna-ez-cgi-v0.7.3_GH0.tar.gz) = ca9d933e51336e91ac0f0e3c09783fbee4d0ad5b8b003e0c1fa3c09c941ba76a
|
||||
SIZE (raphaelreyna-ez-cgi-v0.7.3_GH0.tar.gz) = 17525
|
||||
SHA256 (russross-blackfriday-v2.0.1_GH0.tar.gz) = 5a0f38a36b6f3b2d59b72d713451a895a4d3a4406b3533882483782e37797cff
|
||||
SIZE (russross-blackfriday-v2.0.1_GH0.tar.gz) = 79613
|
||||
SHA256 (shurcooL-sanitized_anchor_name-v1.0.0_GH0.tar.gz) = 7e11964980f9b8595c17bc8970f0174621afe464920e38df7f8d77e45058388f
|
||||
SIZE (shurcooL-sanitized_anchor_name-v1.0.0_GH0.tar.gz) = 2143
|
||||
SHA256 (spf13-cobra-v1.0.0_GH0.tar.gz) = 58dbfe1b4dbc6751575e94d1e62d073098e0b41790bc1c7a7a95ec6b870ac697
|
||||
SIZE (spf13-cobra-v1.0.0_GH0.tar.gz) = 128897
|
||||
SHA256 (spf13-pflag-v1.0.3_GH0.tar.gz) = 9e57f86f493f04d9077fccd04e7139ebf243dd544e917ab83d35729b3e54a124
|
||||
SIZE (spf13-pflag-v1.0.3_GH0.tar.gz) = 46002
|
5
www/oneshot/pkg-descr
Normal file
5
www/oneshot/pkg-descr
Normal file
@ -0,0 +1,5 @@
|
||||
Standalone first-come-first-serve HTTP server.
|
||||
Easily transfer files to and from your terminal
|
||||
and any browser.
|
||||
|
||||
WWW: https://github.com/raphaelreyna/oneshot
|
2
www/oneshot/pkg-plist
Normal file
2
www/oneshot/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
bin/oneshot
|
||||
%%MANPAGES%%man/man1/oneshot.1.gz
|
Loading…
Reference in New Issue
Block a user