parent
2d1b179436
commit
e6d670c171
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
DIST cdist-4.10.1.tar.gz 660264 BLAKE2B 7e4c9bc1e4a750865880aa442ed6c8a125b80d35ba2fbb49f6549c25764a8aea62defd95d3e32782a7290729f45e6a9a658fd2d6abaae15b3686c3ed312dce37 SHA512 d5852ddceb869a5d70c77d65b9288a780cc62794472fff1537a22d3e890b87ffc15181bc425f0bbbf43952eba12aa99046f482cf97f4afa6ca747d2cb55bea98
|
||||
DIST cdist-4.10.4.tar.gz 679595 BLAKE2B ae22287a4424dbcc2dc8c58db2ca3e0af3f526525277208f2256df615d8c214e15483b2c13af882e56121c4bece0f61fb259d2c5f44f02a2f6807451c986554c SHA512 696563dc0cb5a9f25b0d9282017de6315addb999cf63b3de87c1f5de4ce3f1fb99ee0c03f346aacebebfa2dd7f8eed58d22cdb05d2d4c26474963d29688056ed
|
||||
DIST cdist-4.6.1.tar.gz 454461 BLAKE2B 5cf5ba376b981feb6d740f53b4c4cdf51a8f0b4d4422db2c2c7312dd1288e006bfcae7c3459707e361536002a2a6b49bb8ef836783fac8167834978fb5737683 SHA512 f0c3759d00221fbd36d7662de6ccc57fc0070b8aee6a0d80e6bab6f41215c537a1cf1a6ec9fdebf81c45ad8126b8e730a14be8f1286d5baf5f4a5672611e31dc
|
||||
DIST cdist-4.7.3.tar.gz 497537 BLAKE2B e743e49291d6b212810911607ac149a54e6c8423841c4149f620d2127bbeb2fdce7d5ceff76572f1599a3a3326944066ba336f93f25de50d98ad972188562709 SHA512 9b69e257c816d515e4d94bc73d26ca1cfb2343fc4fc8298aadfbb82417aa28c9759831c304b90d6427e275988442cd19681e455c98757c87426d0435dd90ae41
|
||||
|
@ -0,0 +1,24 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=( python{3_4,3_5,3_6} )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A usable configuration management system"
|
||||
HOMEPAGE="https://www.nico.schottelius.org/software/cdist/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="doc"
|
||||
|
||||
python_install_all() {
|
||||
use doc && HTML_DOCS=( docs/dist/html/*.html docs/dist/html/man{1,7}/*.html )
|
||||
distutils-r1_python_install_all
|
||||
|
||||
doman docs/dist/man/man1/*.1 docs/dist/man/man7/*.7
|
||||
}
|
@ -0,0 +1,149 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
EGO_PN="k8s.io/helm"
|
||||
|
||||
MY_PV=${PV/_rc/-rc.}
|
||||
|
||||
EGO_VENDOR=(
|
||||
"cloud.google.com/go 3b1ae45394a234c385be014e9a488f2bb6eef821 github.com/GoogleCloudPlatform/gcloud-golang"
|
||||
"github.com/aokoli/goutils 9c37978a95bd5c709a15883b6242714ea6709e64"
|
||||
"github.com/asaskevich/govalidator 7664702784775e51966f0885f5cd27435916517b"
|
||||
"github.com/Azure/go-ansiterm d6e3b3328b783f23731bc4d058875b0371ff8109"
|
||||
"github.com/Azure/go-autorest bca49d5b51a50dc5bb17bbf6204c711c6dbded06"
|
||||
"github.com/beorn7/perks 3ac7bf7a47d159a033b107610db8a1b6575507a4"
|
||||
"github.com/BurntSushi/toml 3012a1dbe2e4bd1391d42b32f0577cb7bbc7f005"
|
||||
"github.com/chai2010/gettext-go c6fed771bfd517099caf0f7a961671fa8ed08723"
|
||||
"github.com/cpuguy83/go-md2man 71acacd42f85e5e82f70a55327789582a5200a90"
|
||||
"github.com/cyphar/filepath-securejoin a261ee33d7a517f054effbf451841abaafe3e0fd"
|
||||
"github.com/davecgh/go-spew 782f4967f2dc4564575ca782fe2d04090b5faca8"
|
||||
"github.com/dgrijalva/jwt-go 01aeca54ebda6e0fbfafd0a524d234159c05ec20"
|
||||
"github.com/docker/distribution edc3ab29cdff8694dd6feb85cfeb4b5f1b38ed9c"
|
||||
"github.com/docker/docker a9fbbdc8dd8794b20af358382ab780559bca589d"
|
||||
"github.com/docker/go-connections 3ede32e2033de7505e6500d6c868c2b9ed9f169d"
|
||||
"github.com/docker/go-units 9e638d38cf6977a37a8ea0078f3ee75a7cdb2dd1"
|
||||
"github.com/docker/spdystream 449fdfce4d962303d702fec724ef0ad181c92528"
|
||||
"github.com/evanphx/json-patch 36442dbdb585210f8d5a1b45e67aa323c197d5c4"
|
||||
"github.com/exponent-io/jsonpath d6023ce2651d8eafb5c75bb0c7167536102ec9f5"
|
||||
"github.com/fatih/camelcase f6a740d52f961c60348ebb109adde9f4635d7540"
|
||||
"github.com/ghodss/yaml 73d445a93680fa1a78ae23a5839bad48f32ba1ee"
|
||||
"github.com/go-openapi/jsonpointer 46af16f9f7b149af66e5d1bd010e3574dc06de98"
|
||||
"github.com/go-openapi/jsonreference 13c6e3589ad90f49bd3e3bbe2c2cb3d7a4142272"
|
||||
"github.com/go-openapi/spec 1de3e0542de65ad8d75452a595886fdd0befb363"
|
||||
"github.com/go-openapi/swag f3f9494671f93fcff853e3c6e9e948b3eb71e590"
|
||||
"github.com/gobwas/glob 5ccd90ef52e1e632236f7326478d4faa74f99438"
|
||||
"github.com/gogo/protobuf c0656edd0d9eab7c66d1eb0c568f9039345796f7"
|
||||
"github.com/golang/glog 44145f04b68cf362d9c4df2182967c2275eaefed"
|
||||
"github.com/golang/groupcache 02826c3e79038b59d737d3b1c0a1d937f71a4433"
|
||||
"github.com/golang/protobuf 1643683e1b54a9e88ad26d98f81400c8c9d9f4f9"
|
||||
"github.com/google/btree 7d79101e329e5a3adf994758c578dab82b90c017"
|
||||
"github.com/google/gofuzz 44d81051d367757e1c7c6a5a86423ece9afcf63c"
|
||||
"github.com/google/uuid 064e2069ce9c359c118179501254f67d7d37ba24"
|
||||
"github.com/googleapis/gnostic 0c5108395e2debce0d731cf0287ddf7242066aba"
|
||||
"github.com/gophercloud/gophercloud 781450b3c4fcb4f5182bcc5133adb4b2e4a09d1d"
|
||||
"github.com/gosuri/uitable 36ee7e946282a3fb1cfecd476ddc9b35d8847e42"
|
||||
"github.com/gregjones/httpcache 787624de3eb7bd915c329cba748687a3b22666a6"
|
||||
"github.com/grpc-ecosystem/go-grpc-prometheus 0c1b191dbfe51efdabe3c14b9f6f3b96429e0722"
|
||||
"github.com/hashicorp/golang-lru a0d98a5f288019575c6d1f4bb1573fef2d1fcdc4"
|
||||
"github.com/huandu/xstrings 3959339b333561bf62a38b424fd41517c2c90f40"
|
||||
"github.com/imdario/mergo 9316a62528ac99aaecb4e47eadd6dc8aa6533d58"
|
||||
"github.com/inconshreveable/mousetrap 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"
|
||||
"github.com/json-iterator/go f2b4162afba35581b6d4a50d3b8f34e33c144682"
|
||||
"github.com/mailru/easyjson 2f5df55504ebc322e4d52d34df6a1f5b503bf26d"
|
||||
"github.com/MakeNowJust/heredoc bb23615498cded5e105af4ce27de75b089cbe851"
|
||||
"github.com/Masterminds/semver 517734cc7d6470c0d07130e40fd40bdeb9bcd3fd"
|
||||
"github.com/Masterminds/sprig 15f9564e7e9cf0da02a48e0d25f12a7b83559aa6"
|
||||
"github.com/Masterminds/vcs 3084677c2c188840777bff30054f2b553729d329"
|
||||
"github.com/mattn/go-runewidth d6bea18f789704b5f83375793155289da36a3c7f"
|
||||
"github.com/matttproud/golang_protobuf_extensions c12348ce28de40eed0136aa2b644d0ee0650e56c"
|
||||
"github.com/mitchellh/go-wordwrap ad45545899c7b13c020ea92b2072220eefad42b8"
|
||||
"github.com/modern-go/concurrent bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94"
|
||||
"github.com/modern-go/reflect2 05fbef0ca5da472bbf96c9322b84a53edc03c9fd"
|
||||
"github.com/opencontainers/go-digest a6d0ee40d4207ea02364bd3b9e8e77b9159ba1eb"
|
||||
"github.com/opencontainers/image-spec 372ad780f63454fbbbbcc7cf80e5b90245c13e13"
|
||||
"github.com/peterbourgon/diskv 5f041e8faa004a95c88a202771f4cc3e991971e6"
|
||||
"github.com/pkg/errors 645ef00459ed84a119197bfb8d8205042c6df63d"
|
||||
"github.com/prometheus/client_golang c5b7fccd204277076155f10851dad72b76a49317"
|
||||
"github.com/prometheus/client_model fa8ad6fec33561be4280a8f0514318c79d7f6cb6"
|
||||
"github.com/prometheus/common 13ba4ddd0caa9c28ca7b7bffe1dfa9ed8d5ef207"
|
||||
"github.com/prometheus/procfs 65c1f6f8f0fc1e2185eb9863a3bc751496404259"
|
||||
"github.com/PuerkitoBio/purell 8a290539e2e8629dbc4e6bad948158f790ec31f4"
|
||||
"github.com/PuerkitoBio/urlesc 5bd2802263f21d8788851d5305584c82a5c75d7e"
|
||||
"github.com/russross/blackfriday 300106c228d52c8941d4b3de6054a6062a86dda3"
|
||||
"github.com/shurcooL/sanitized_anchor_name 10ef21a441db47d8b13ebcc5fd2310f636973c77"
|
||||
"github.com/sirupsen/logrus 89742aefa4b206dcf400792f3bd35b542998eb3b"
|
||||
"github.com/spf13/cobra fe5e611709b0c57fa4a89136deaa8e1d4004d053"
|
||||
"github.com/spf13/pflag 298182f68c66c05229eb03ac171abe6e309ee79a"
|
||||
"github.com/technosophos/moniker a5dbd03a2245d554160e3ae6bfdcf969fe58b431"
|
||||
"golang.org/x/crypto de0752318171da717af4ce24d0a2e8626afaeb11 github.com/golang/crypto"
|
||||
"golang.org/x/net 1c05540f6879653db88113bc4a2b70aec4bd491f github.com/golang/net"
|
||||
"golang.org/x/oauth2 a6bd8cefa1811bd24b86f8902872e4e8225f74c4 github.com/golang/oauth2"
|
||||
"golang.org/x/sys 95c6576299259db960f6c5b9b69ea52422860fce github.com/golang/sys"
|
||||
"golang.org/x/text b19bf474d317b857955b12035d2c5acb57ce8b01 github.com/golang/text"
|
||||
"golang.org/x/time f51c12702a4d776e4c1fa9b0fabab841babae631 github.com/golang/time"
|
||||
"google.golang.org/appengine 12d5545dc1cfa6047a286d5e853841b6471f4c19 github.com/golang/appengine"
|
||||
"google.golang.org/genproto 09f6ed296fc66555a25fe4ce95173148778dfa85 github.com/google/go-genproto"
|
||||
"google.golang.org/grpc 5ffe3083946d5603a0578721101dc8165b1d5b5f github.com/grpc/grpc-go"
|
||||
"gopkg.in/inf.v0 3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4 github.com/go-inf/inf"
|
||||
"gopkg.in/square/go-jose.v2 89060dee6a84df9a4dae49f676f0c755037834f1 github.com/square/go-jose"
|
||||
"gopkg.in/yaml.v2 670d4cfef0544295bc27a114dbac37980d83185a github.com/go-yaml/yaml"
|
||||
"k8s.io/api fd83cbc87e7632ccd8bbab63d2b673d4e0c631cc github.com/kubernetes/api"
|
||||
"k8s.io/apiextensions-apiserver 05e89e265cc594459a3d33a63e779d94e6614c63 github.com/kubernetes/apiextensions-apiserver"
|
||||
"k8s.io/apimachinery 6dd46049f39503a1fc8d65de4bd566829e95faff github.com/kubernetes/apimachinery"
|
||||
"k8s.io/apiserver e85ad7b666fef0476185731329f4cff1536efff8 github.com/kubernetes/apiserver"
|
||||
"k8s.io/client-go 1638f8970cefaa404ff3a62950f88b08292b2696 github.com/kubernetes/client-go"
|
||||
"k8s.io/cli-runtime 79bf4e0b64544d8c490247abae089bea572ddae6 github.com/kubernetes/cli-runtime"
|
||||
"k8s.io/kube-openapi 0cf8f7e6ed1d2e3d47d02e3b6e559369af24d803 github.com/kubernetes/kube-openapi"
|
||||
"k8s.io/kubernetes 54a352dda957bce0f88e49b65a6ee8bba8c0ba74 github.com/kubernetes/kubernetes"
|
||||
"k8s.io/utils 66066c83e385e385ccc3c964b44fd7dcd413d0ed github.com/kubernetes/utils"
|
||||
"vbom.ml/util db5cfe13f5cc80a4990d98e2e1b0707a4d1a5394 github.com/fvbommel/util"
|
||||
)
|
||||
|
||||
inherit golang-build golang-vcs-snapshot bash-completion-r1
|
||||
|
||||
GIT_COMMIT="d325d2a9c179b33af1a024cdb5a4472b6288016a"
|
||||
|
||||
ARCHIVE_URI="https://github.com/kubernetes/helm/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz
|
||||
${EGO_VENDOR_URI}"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DESCRIPTION="Kubernetes Package Manager"
|
||||
HOMEPAGE="https://github.com/kubernetes/helm https://helm.sh"
|
||||
SRC_URI="${ARCHIVE_URI}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s/git rev-parse HEAD/echo ${GIT_COMMIT}/"\
|
||||
-e "s/git rev-parse --short HEAD/echo ${GIT_COMMIT:0:7}/"\
|
||||
-e "s#git describe --tags --abbrev=0 --exact-match 2>/dev/null#echo v${PV}#"\
|
||||
-e 's/test -n "`git status --porcelain`" && echo "dirty" ||//' src/${EGO_PN}/versioning.mk || die
|
||||
|
||||
rm -rf src/${EGO_PN}/vendor/*/*/vendor src/${EGO_PN}/vendor/*/*/*/vendor || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
pushd src/${EGO_PN} || die
|
||||
GOPATH="${S}" go build -o bin/protoc-gen-go ./vendor/github.com/golang/protobuf/protoc-gen-go || die
|
||||
GOBINDIR="$(pwd)/bin" GOPATH="${S}"\
|
||||
go install -v -ldflags "-X k8s.io/helm/pkg/version.Version=v${PV} -X k8s.io/helm/pkg/version.BuildMetadata= -X k8s.io/helm/pkg/version.GitCommit=${GIT_COMMIT} -X k8s.io/helm/pkg/version.GitTreeState=clean" k8s.io/helm/cmd/... || die
|
||||
popd || die
|
||||
bin/${PN} completion bash > ${PN}.bash || die
|
||||
bin/${PN} completion zsh > ${PN}.zsh || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbashcomp ${PN}.bash ${PN}
|
||||
insinto /usr/share/zsh/site-functions
|
||||
newins ${PN}.zsh _${PN}
|
||||
|
||||
dobin bin/${PN} bin/tiller
|
||||
dodoc src/${EGO_PN}/README.md
|
||||
}
|
@ -1 +0,0 @@
|
||||
DIST localepurge-0.5.4.tbz2 5038 BLAKE2B 32a2155761d3cc8d8c1b0ad62ef324b7c7c768d75395ba6d4d6100382e83becba1d69fa15ac2839dabeeae15f1d2bb3bb947c62d5cbcb3d496cf68b140ae2bc8 SHA512 246acb8ef497a2f607ee8545c4d46fd5a1957189eb0b705bf6bcd1cd35ba5b48c7e090db480519c8e3a7427b5ad5a2c020b40232a8fbd0840f9677a6c7af600e
|
@ -1,20 +0,0 @@
|
||||
--- a/localepurge
|
||||
+++ b/localepurge
|
||||
@@ -198,7 +198,7 @@
|
||||
|
||||
if [ "$SHOWFREEDSPACE" = "enabled" ]; then
|
||||
if test $SPACETMP -gt 0 ; then
|
||||
- LOCALETOTAL=$SPACETMP
|
||||
+ LOCALETOTAL=$(($LOCALETOTAL + $SPACETMP))
|
||||
einfo "localepurge: Disk space freed in $LOCALEDIR: ${BOLD}"$SPACETMP"K${NORMAL}"
|
||||
fi
|
||||
SPACETMP=0
|
||||
@@ -230,7 +230,7 @@
|
||||
|
||||
if [ "$SHOWFREEDSPACE" = "enabled" ]; then
|
||||
if test $SPACETMP -gt 0 ; then
|
||||
- MANTOTAL=$SPACETMP
|
||||
+ MANTOTAL=$(($MANTOTAL + $SPACETMP))
|
||||
einfo "localepurge: Disk space freed in $MANPAGEDIR: ${BOLD}"$SPACETMP"K${NORMAL}"
|
||||
fi
|
||||
SPACETMP=0
|
@ -1,11 +0,0 @@
|
||||
--- a/localepurge
|
||||
+++ b/localepurge
|
||||
@@ -254,7 +254,7 @@
|
||||
|
||||
# Calculating and reporting total disk space freed:
|
||||
if [ "$SHOWFREEDSPACE" = "enabled" ]; then
|
||||
- let TOTAL=$LOCALETOTAL+$MANTOTAL
|
||||
+ TOTAL=$(($LOCALETOTAL+$MANTOTAL))
|
||||
if test $TOTAL -lt 0; then
|
||||
TOTAL=0
|
||||
fi
|
@ -1,18 +0,0 @@
|
||||
--- a/localepurge
|
||||
+++ b/localepurge
|
||||
@@ -165,7 +165,14 @@
|
||||
${ACTION} `find ${REMOVEPATH} -type f -o -type l`
|
||||
|
||||
if [ "$SHOWFREEDSPACE" = "enabled" ]; then
|
||||
- SPACEAFTER=$(df -P ${REMOVEPATH} | awk '{if ( NR==2 ) { print $3 }}')
|
||||
+ # if symlink, REMOVEPATH could be removed
|
||||
+ # check from parentdir then
|
||||
+ if [ -d ${REMOVEPATH} ]; then
|
||||
+ SPACEAFTER=$(df -P ${REMOVEPATH} | awk '{if ( NR==2 ) { print $3 }}')
|
||||
+ else
|
||||
+ SPACEAFTER=$(df -P ${REMOVEPATH%/*} | awk '{if ( NR==2 ) { print $3 }}')
|
||||
+ fi
|
||||
+
|
||||
SPACESUM=$(($SPACEBEFORE - $SPACEAFTER))
|
||||
|
||||
if test $SPACESUM -gt 0 ; then
|
@ -1,58 +0,0 @@
|
||||
--- a/localepurge
|
||||
+++ b/localepurge
|
||||
@@ -1,14 +1,14 @@
|
||||
-#!/bin/bash
|
||||
+#!@GENTOO_PORTAGE_EPREFIX@/bin/bash
|
||||
|
||||
# Deleting all locale files on system
|
||||
# *not* listed in /etc/locale.nopurge
|
||||
|
||||
set -e
|
||||
|
||||
-LOCALEDIRS="/usr/share/locale /usr/local/share/locale /usr/kde/?.?/share/locale /opt/sun-jdk-*/jre/lib/locale /opt/sun-jre-bin-*/lib/locale /usr/lib/locale /usr/share/binutils-data/*/*/locale /usr/share/gcc-data/*/*/locale"
|
||||
-MANPAGEDIRS="/usr/share/man /usr/man /usr/local/share/man /usr/kde/?.?/share/man /usr/kde/?.?/man /opt/sun-jdk-*/man /opt/sun-jre-bin-*/man"
|
||||
-LOCALELIST="/var/cache/localepurge/localelist"
|
||||
-CONFIGFILE="/etc/locale.nopurge"
|
||||
+LOCALEDIRS="@GENTOO_PORTAGE_EPREFIX@/usr/share/locale @GENTOO_PORTAGE_EPREFIX@/usr/local/share/locale @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/share/locale @GENTOO_PORTAGE_EPREFIX@/opt/sun-jdk-*/jre/lib/locale @GENTOO_PORTAGE_EPREFIX@/opt/sun-jre-bin-*/lib/locale @GENTOO_PORTAGE_EPREFIX@/usr/lib/locale @GENTOO_PORTAGE_EPREFIX@/usr/share/binutils-data/*/*/locale @GENTOO_PORTAGE_EPREFIX@/usr/share/gcc-data/*/*/locale"
|
||||
+MANPAGEDIRS="@GENTOO_PORTAGE_EPREFIX@/usr/share/man @GENTOO_PORTAGE_EPREFIX@/usr/man @GENTOO_PORTAGE_EPREFIX@/usr/local/share/man @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/share/man @GENTOO_PORTAGE_EPREFIX@/usr/kde/?.?/man @GENTOO_PORTAGE_EPREFIX@/opt/sun-jdk-*/man @GENTOO_PORTAGE_EPREFIX@/opt/sun-jre-bin-*/man"
|
||||
+LOCALELIST="@GENTOO_PORTAGE_EPREFIX@/var/cache/localepurge/localelist"
|
||||
+CONFIGFILE="@GENTOO_PORTAGE_EPREFIX@/etc/locale.nopurge"
|
||||
VERSION="0.5.4"
|
||||
|
||||
LOCALETOTAL=0
|
||||
@@ -23,7 +23,7 @@
|
||||
BRACKET=$'\e[34;01m'
|
||||
BOLD=$'\e[1m'
|
||||
|
||||
-ACTION="/bin/rm -vf"
|
||||
+ACTION="@GENTOO_PORTAGE_EPREFIX@/bin/rm -vf"
|
||||
|
||||
eerror () {
|
||||
echo -e " ${BAD}*${NORMAL} $*" 2> /dev/stderr
|
||||
@@ -43,7 +43,7 @@
|
||||
print() {
|
||||
for x in $@; do
|
||||
if [ "${x}" = "" ]; then return 0
|
||||
- else /bin/echo $x
|
||||
+ else @GENTOO_PORTAGE_EPREFIX@/bin/echo $x
|
||||
fi
|
||||
done
|
||||
}
|
||||
@@ -184,7 +184,7 @@
|
||||
einfo "localepurge: processing locale files in ${LOCALEDIR} ..."
|
||||
fi
|
||||
|
||||
- for LOCALE in `/bin/ls ${LOCALEDIR}`; do
|
||||
+ for LOCALE in `@GENTOO_PORTAGE_EPREFIX@/bin/ls ${LOCALEDIR}`; do
|
||||
if echo "${PURGELIST}" | grep -xq ${LOCALE}; then
|
||||
if [ -d ${LOCALEDIR}/${LOCALE}/LC_MESSAGES ]; then
|
||||
if [ "${LIST}" = "enabled" ]; then
|
||||
@@ -216,7 +216,7 @@
|
||||
einfo "localepurge: processing man pages in ${MANPAGEDIR} ..."
|
||||
fi
|
||||
|
||||
- for LOCALE in `/bin/ls ${MANPAGEDIR} | grep -v ^man[1-9]`; do
|
||||
+ for LOCALE in `@GENTOO_PORTAGE_EPREFIX@/bin/ls ${MANPAGEDIR} | grep -v ^man[1-9]`; do
|
||||
if echo "${PURGELIST}" | grep -xq ${LOCALE}; then
|
||||
if [ -d ${MANPAGEDIR}/${LOCALE} ]; then
|
||||
if [ "${LIST}" = "enabled" ]; then
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit prefix
|
||||
|
||||
DESCRIPTION="Script to recover diskspace on unneeded locale files & localized man pages"
|
||||
HOMEPAGE="https://gentoo.org
|
||||
https://cgit.gentoo.org/proj/localepurge.git"
|
||||
SRC_URI="https://dev.gentoo.org/~hwoarang/distfiles/${P}.tbz2"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND="app-shells/bash"
|
||||
|
||||
S=${WORKDIR}/${PN}
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${PN}-0.5.4-prefix.patch
|
||||
"${FILESDIR}"/${PN}-0.5.4-directorysum.patch # 164544
|
||||
"${FILESDIR}"/${PN}-0.5.4-parentdir.patch #445910
|
||||
"${FILESDIR}"/${PN}-0.5.4-evaltotal.patch #452208
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eprefixify ${PN}
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto /var/cache/${PN}
|
||||
doins defaultlist
|
||||
dosym defaultlist /var/cache/${PN}/localelist
|
||||
insinto /etc
|
||||
doins locale.nopurge
|
||||
dobin ${PN}
|
||||
doman ${PN}.8
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<longdescription>Just a simple tool to erase all uneeded locale and man files
|
||||
usually generated for USE="nls"</longdescription>
|
||||
</pkgmetadata>
|
@ -1,6 +1,6 @@
|
||||
DIST rsyslog-8.35.0.tar.gz 2590108 BLAKE2B e201c1366b8ab96c070829d51de079212e82216a793eb7622aa91c66e2330981de8be547b1ee7f102ed7d8c8de054d58ba151e95238146a61fba8fe908c5f929 SHA512 3b8845fc057147c2dd740b3bb432e7fb101ad60be5c6bc86a2c2796bcd3f3526c617d45b9e8301388d51047a125ca18ba4ac54f8be2a13eabbbe8fb9361beecc
|
||||
DIST rsyslog-8.38.0.tar.gz 2721798 BLAKE2B 578bc9eefce4893a9c1eb54ee7360cd9fa51b3c87ffe07a0fd5b122987f991835f603417243084de0b59286e993ad1c84237e61c44bc18457b3660668421101b SHA512 9dc3bdc4ef01c2af433478e182704694cb50849d811d476a03e4ce03b3c5aecfb506e7f1c1e51fadcd63da60b067d8011b92b8c9354a688fe66f7b6ffd8f9254
|
||||
DIST rsyslog-8.39.0.tar.gz 2721560 BLAKE2B 0680cb31d0a07e5676a5c5626e46fa174b8df08ceec49b514624ff8ffeb750bbf199f73af1d89b9dfad121a292084d75b0a1218fb33138f1d7a149fd730cb3d9 SHA512 f46ead433f703df4af6ddc4bbb178ea145d7d2a35ee7749c32b9889f299ba20c83ed76c246530608198e84fef1f2bf10097344c31d5df38b9e0ae47cf4bee479
|
||||
DIST rsyslog-doc-8.35.0.tar.gz 7427270 BLAKE2B 5441080c07a8398cd5d513ba6abe0335f62762f105354105549f0440c0429c62a4f28a4cc84a71d049bc8134cd64bda2c2210a2f30fd5b94f53e0bc783e7c8d1 SHA512 f78d0451eef789d60f7c5ae1eed46c4a9f7a6ade73b829f65aa2373aa786b00e84e8957089532b1b652838bd9f62b41d92530276a0d27e21b8e94d5f0e4728a6
|
||||
DIST rsyslog-8.40.0.tar.gz 2726022 BLAKE2B 33f7f2018200a20b01dbfabeeab592aa09d530edd313bb13f16c47cf3f67aebd9c465af3f1e468ca3d352cd83e4f4eee567c6fd54bbaee1723bee56f4631b440 SHA512 3d5d4f92e37ad9bf3767d5d7fc87fcb7956656f676a9495c78abd12fe9072ec8763b50543b198308a71d5d919721fb9b84b6725dd83a9d9b8a1639d81382c0dd
|
||||
DIST rsyslog-doc-8.38.0.tar.gz 7662314 BLAKE2B 57a121950a3f6630e4736a1ff998e93b543389107d146ddb148ecd2702bb208d21a7f4d77f2fd958f2a56e092341fc6a24ed1cc80a910cb1adb54c65b5b2da04 SHA512 e28a09ae2fcddc711d2cfd31207c9862192598e49964a47b41fc8fa3ae5b1e08b7e2589fb5af859d58d4bf028574eb56cac6514401aa56cb482fa1166863e6a5
|
||||
DIST rsyslog-doc-8.39.0.tar.gz 7674833 BLAKE2B 1526e0637c3ab9846f447dcea48efbfd17aa517c2fc875c46ac190428db6aa2a0f81f8aaed6e5b0b6991a5c13f45bc818be76c0fe4444c0eb45628ebf48b4956 SHA512 a6d09d384616a264fdf6e09fa0f61bd82a42340bac426d93119e11158f293dd58f894623aca30f2137e51bf701531f07938d014c9b8ec97d0a796447de3089de
|
||||
DIST rsyslog-doc-8.40.0.tar.gz 7709769 BLAKE2B cda3bbd005120e7100bb36cf4c0f99d3a037525c5451ead5957f4dfe06eaceeba8fb2e266f53203bee6fae97898774ee17862a52ca1dae99aeb3534bbfadcd60 SHA512 2e2f37336948984a8cf0e098eb46e61fe4de6366d63a98204ecd558f4e21b7c1f222659f7bdecdd22e0a61d34c442b4734dbe72a72e8716c768a900b954d473f
|
||||
|
@ -1,241 +0,0 @@
|
||||
Add missing files for mmkubernetes tests
|
||||
|
||||
Upstream bug: https://github.com/rsyslog/rsyslog/pull/2719
|
||||
|
||||
--- /dev/null
|
||||
+++ b/tests/mmkubernetes-basic.out.json
|
||||
@@ -0,0 +1,110 @@
|
||||
+[{
|
||||
+ "kubernetes": {
|
||||
+ "namespace_id": "namespace-name2-id",
|
||||
+ "namespace_labels": {
|
||||
+ "label_1_key": "label 1 value",
|
||||
+ "label_with_empty_value": "",
|
||||
+ "label_2_key": "label 2 value"
|
||||
+ },
|
||||
+ "creation_timestamp": "2018-04-09T21:56:39Z",
|
||||
+ "pod_id": "pod-name2-id",
|
||||
+ "labels": {
|
||||
+ "custom_label": "pod-name2-label-value",
|
||||
+ "deploymentconfig": "pod-name2-dc",
|
||||
+ "component": "pod-name2-component",
|
||||
+ "label_with_empty_value": "",
|
||||
+ "deployment": "pod-name2-deployment"
|
||||
+ },
|
||||
+ "pod_name": "pod-name2",
|
||||
+ "namespace_name": "namespace-name2",
|
||||
+ "container_name": "container-name2",
|
||||
+ "master_url": "http://localhost:18443"
|
||||
+ },
|
||||
+ "docker": {
|
||||
+ "container_id": "id2"
|
||||
+ }
|
||||
+},
|
||||
+{
|
||||
+ "message": "a message from container 4",
|
||||
+ "CONTAINER_NAME": "some-prefix_container-name4_pod-name4_namespace-name4_unused4_unused44",
|
||||
+ "CONTAINER_ID_FULL": "id4",
|
||||
+ "kubernetes": {
|
||||
+ "namespace_id": "namespace-name4-id",
|
||||
+ "namespace_labels": {
|
||||
+ "label_1_key": "label 1 value",
|
||||
+ "label_with_empty_value": "",
|
||||
+ "label_2_key": "label 2 value"
|
||||
+ },
|
||||
+ "creation_timestamp": "2018-04-09T21:56:39Z",
|
||||
+ "pod_id": "pod-name4-id",
|
||||
+ "labels": {
|
||||
+ "custom_label": "pod-name4-label-value",
|
||||
+ "deploymentconfig": "pod-name4-dc",
|
||||
+ "component": "pod-name4-component",
|
||||
+ "label_with_empty_value": "",
|
||||
+ "deployment": "pod-name4-deployment"
|
||||
+ },
|
||||
+ "pod_name": "pod-name4",
|
||||
+ "namespace_name": "namespace-name4",
|
||||
+ "container_name": "container-name4",
|
||||
+ "master_url": "http://localhost:18443"
|
||||
+ },
|
||||
+ "docker": {
|
||||
+ "container_id": "id4"
|
||||
+ }
|
||||
+},
|
||||
+{
|
||||
+ "kubernetes": {
|
||||
+ "namespace_id": "namespace-name1-id",
|
||||
+ "namespace_labels": {
|
||||
+ "label_1_key": "label 1 value",
|
||||
+ "label_with_empty_value": "",
|
||||
+ "label_2_key": "label 2 value"
|
||||
+ },
|
||||
+ "creation_timestamp": "2018-04-09T21:56:39Z",
|
||||
+ "pod_id": "pod-name1-id",
|
||||
+ "labels": {
|
||||
+ "custom_label": "pod-name1-label-value",
|
||||
+ "deploymentconfig": "pod-name1-dc",
|
||||
+ "component": "pod-name1-component",
|
||||
+ "label_with_empty_value": "",
|
||||
+ "deployment": "pod-name1-deployment"
|
||||
+ },
|
||||
+ "pod_name": "pod-name1",
|
||||
+ "namespace_name": "namespace-name1",
|
||||
+ "container_name": "container-name1",
|
||||
+ "master_url": "http://localhost:18443"
|
||||
+ },
|
||||
+ "docker": {
|
||||
+ "container_id": "id1"
|
||||
+ }
|
||||
+},
|
||||
+{
|
||||
+ "message": "a message from container 3",
|
||||
+ "CONTAINER_NAME": "some-prefix_container-name3.container-hash3_pod-name3_namespace-name3_unused3_unused33",
|
||||
+ "CONTAINER_ID_FULL": "id3",
|
||||
+ "kubernetes": {
|
||||
+ "namespace_id": "namespace-name3-id",
|
||||
+ "namespace_labels": {
|
||||
+ "label_1_key": "label 1 value",
|
||||
+ "label_with_empty_value": "",
|
||||
+ "label_2_key": "label 2 value"
|
||||
+ },
|
||||
+ "creation_timestamp": "2018-04-09T21:56:39Z",
|
||||
+ "pod_id": "pod-name3-id",
|
||||
+ "labels": {
|
||||
+ "custom_label": "pod-name3-label-value",
|
||||
+ "deploymentconfig": "pod-name3-dc",
|
||||
+ "component": "pod-name3-component",
|
||||
+ "label_with_empty_value": "",
|
||||
+ "deployment": "pod-name3-deployment"
|
||||
+ },
|
||||
+ "pod_name": "pod-name3",
|
||||
+ "namespace_name": "namespace-name3",
|
||||
+ "container_name": "container-name3",
|
||||
+ "master_url": "http://localhost:18443"
|
||||
+ },
|
||||
+ "docker": {
|
||||
+ "container_id": "id3"
|
||||
+ }
|
||||
+}]
|
||||
--- /dev/null
|
||||
+++ b/tests/mmkubernetes_test_server.py
|
||||
@@ -0,0 +1,121 @@
|
||||
+# Used by the mmkubernetes tests
|
||||
+# This is a simple http server which responds to kubernetes api requests
|
||||
+# and responds with kubernetes api server responses
|
||||
+# added 2018-04-06 by richm, released under ASL 2.0
|
||||
+import os
|
||||
+import json
|
||||
+import sys
|
||||
+
|
||||
+try:
|
||||
+ from http.server import HTTPServer, BaseHTTPRequestHandler
|
||||
+except ImportError:
|
||||
+ from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
|
||||
+
|
||||
+ns_template = '''{{
|
||||
+ "kind": "Namespace",
|
||||
+ "apiVersion": "v1",
|
||||
+ "metadata": {{
|
||||
+ "name": "{namespace_name}",
|
||||
+ "selfLink": "/api/v1/namespaces/{namespace_name}",
|
||||
+ "uid": "{namespace_name}-id",
|
||||
+ "resourceVersion": "2988",
|
||||
+ "creationTimestamp": "2018-04-09T21:56:39Z",
|
||||
+ "labels": {{
|
||||
+ "label.1.key":"label 1 value",
|
||||
+ "label.2.key":"label 2 value",
|
||||
+ "label.with.empty.value":""
|
||||
+ }},
|
||||
+ "annotations": {{
|
||||
+ "k8s.io/description": "",
|
||||
+ "k8s.io/display-name": "",
|
||||
+ "k8s.io/node-selector": "",
|
||||
+ "k8s.io/sa.scc.mcs": "s0:c9,c4",
|
||||
+ "k8s.io/sa.scc.supplemental-groups": "1000080000/10000",
|
||||
+ "k8s.io/sa.scc.uid-range": "1000080000/10000",
|
||||
+ "quota.k8s.io/cluster-resource-override-enabled": "false"
|
||||
+ }}
|
||||
+ }},
|
||||
+ "spec": {{
|
||||
+ "finalizers": [
|
||||
+ "openshift.io/origin",
|
||||
+ "kubernetes"
|
||||
+ ]
|
||||
+ }},
|
||||
+ "status": {{
|
||||
+ "phase": "Active"
|
||||
+ }}
|
||||
+}}'''
|
||||
+
|
||||
+pod_template = '''{{
|
||||
+ "kind": "Pod",
|
||||
+ "apiVersion": "v1",
|
||||
+ "metadata": {{
|
||||
+ "name": "{pod_name}",
|
||||
+ "generateName": "{pod_name}-prefix",
|
||||
+ "namespace": "{namespace_name}",
|
||||
+ "selfLink": "/api/v1/namespaces/{namespace_name}/pods/{pod_name}",
|
||||
+ "uid": "{pod_name}-id",
|
||||
+ "resourceVersion": "3486",
|
||||
+ "creationTimestamp": "2018-04-09T21:56:39Z",
|
||||
+ "labels": {{
|
||||
+ "component": "{pod_name}-component",
|
||||
+ "deployment": "{pod_name}-deployment",
|
||||
+ "deploymentconfig": "{pod_name}-dc",
|
||||
+ "custom.label": "{pod_name}-label-value",
|
||||
+ "label.with.empty.value":""
|
||||
+ }},
|
||||
+ "annotations": {{
|
||||
+ "k8s.io/deployment-config.latest-version": "1",
|
||||
+ "k8s.io/deployment-config.name": "{pod_name}-dc",
|
||||
+ "k8s.io/deployment.name": "{pod_name}-deployment",
|
||||
+ "k8s.io/custom.name": "custom value",
|
||||
+ "annotation.with.empty.value":""
|
||||
+ }}
|
||||
+ }},
|
||||
+ "status": {{
|
||||
+ "phase": "Running",
|
||||
+ "hostIP": "172.18.4.32",
|
||||
+ "podIP": "10.128.0.14",
|
||||
+ "startTime": "2018-04-09T21:57:39Z"
|
||||
+ }}
|
||||
+}}'''
|
||||
+
|
||||
+class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||
+
|
||||
+ def do_GET(self):
|
||||
+ # "http://localhost:18443/api/v1/namespaces/namespace-name2"
|
||||
+ # parse url - either /api/v1/namespaces/$ns_name
|
||||
+ # or
|
||||
+ # /api/v1/namespaces/$ns_name/pods/$pod_name
|
||||
+ comps = self.path.split('/')
|
||||
+ status = 400
|
||||
+ if len(comps) >= 5 and comps[1] == 'api' and comps[2] == 'v1':
|
||||
+ if len(comps) == 5 and comps[3] == 'namespaces': # namespace
|
||||
+ resp = ns_template.format(namespace_name=comps[4])
|
||||
+ status = 200
|
||||
+ elif len(comps) == 7 and comps[3] == 'namespaces' and comps[5] == 'pods':
|
||||
+ resp = pod_template.format(namespace_name=comps[4], pod_name=comps[6])
|
||||
+ status = 200
|
||||
+ else:
|
||||
+ resp = '{{"error":"do not recognize {0}"}}'.format(self.path)
|
||||
+ else:
|
||||
+ resp = '{{"error":"do not recognize {0}"}}'.format(self.path)
|
||||
+ if not status == 200:
|
||||
+ self.log_error(resp)
|
||||
+ self.send_response(status)
|
||||
+ self.end_headers()
|
||||
+ self.wfile.write(json.dumps(json.loads(resp), separators=(',',':')))
|
||||
+
|
||||
+port = int(sys.argv[1])
|
||||
+
|
||||
+httpd = HTTPServer(('localhost', port), SimpleHTTPRequestHandler)
|
||||
+
|
||||
+# write "started" to file named in argv[3]
|
||||
+with open(sys.argv[3], "w") as ff:
|
||||
+ ff.write("started\n")
|
||||
+
|
||||
+# write pid to file named in argv[2]
|
||||
+with open(sys.argv[2], "w") as ff:
|
||||
+ ff.write('{0}\n'.format(os.getpid()))
|
||||
+
|
||||
+httpd.serve_forever()
|
@ -1,41 +0,0 @@
|
||||
From c1791ee90fdd8adf219ae3d2b849f5f041284b7c Mon Sep 17 00:00:00 2001
|
||||
From: Rich Megginson <rmeggins@redhat.com>
|
||||
Date: Thu, 17 May 2018 18:38:25 -0600
|
||||
Subject: [PATCH] mmkubernetes test python must encode response
|
||||
|
||||
https://github.com/rsyslog/rsyslog/issues/2721
|
||||
Was not working on python3 - must use `encode()` to convert the
|
||||
string to a `bytes` object.
|
||||
Also run the server with python -u to make sure we get the log
|
||||
output from the kubernetes test server.
|
||||
---
|
||||
tests/mmkubernetes-basic.sh | 2 +-
|
||||
tests/mmkubernetes_test_server.py | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/tests/mmkubernetes-basic.sh b/tests/mmkubernetes-basic.sh
|
||||
index 0bbfd08ca..d320c343f 100755
|
||||
--- a/tests/mmkubernetes-basic.sh
|
||||
+++ b/tests/mmkubernetes-basic.sh
|
||||
@@ -4,7 +4,7 @@
|
||||
. $srcdir/diag.sh init
|
||||
|
||||
testsrv=mmk8s-test-server
|
||||
-python ./mmkubernetes_test_server.py 18443 rsyslog${testsrv}.pid rsyslogd${testsrv}.started > mmk8s_srv.log 2>&1 &
|
||||
+python -u ./mmkubernetes_test_server.py 18443 rsyslog${testsrv}.pid rsyslogd${testsrv}.started > mmk8s_srv.log 2>&1 &
|
||||
BGPROCESS=$!
|
||||
. $srcdir/diag.sh wait-startup $testsrv
|
||||
echo background mmkubernetes_test_server.py process id is $BGPROCESS
|
||||
diff --git a/tests/mmkubernetes_test_server.py b/tests/mmkubernetes_test_server.py
|
||||
index 0de215603..24f4e1b0e 100644
|
||||
--- a/tests/mmkubernetes_test_server.py
|
||||
+++ b/tests/mmkubernetes_test_server.py
|
||||
@@ -104,7 +104,7 @@ def do_GET(self):
|
||||
self.log_error(resp)
|
||||
self.send_response(status)
|
||||
self.end_headers()
|
||||
- self.wfile.write(json.dumps(json.loads(resp), separators=(',',':')))
|
||||
+ self.wfile.write(json.dumps(json.loads(resp), separators=(',',':')).encode())
|
||||
|
||||
port = int(sys.argv[1])
|
||||
|
Binary file not shown.
@ -0,0 +1 @@
|
||||
DIST hey-0.1.1_p20181017.tar.gz 446212 BLAKE2B b8d55e4f7efb34634b81b5301617c84aea66cb1fdbe973d45317a309b845d4503331618688feeaef2bb9effa82f6d155b68b813a4b5b4f17149245cb7f15b2ec SHA512 ccaf4ca2025ce4cbe10cbeb5d7a43903d7e15fdc20ed9623795bd3c11b0df510c3b51749c5e63502fb0fd3153f18a7d1b65297b11631b5889f719d0619602604
|
@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
EGO_SRC="github.com/rakyll/hey"
|
||||
EGO_PN=${EGO_SRC}/...
|
||||
EGIT_COMMIT="01803349acd49d756dafa2cb6ac5b5bfc141fc3b"
|
||||
|
||||
inherit golang-build golang-vcs-snapshot
|
||||
|
||||
DESCRIPTION="HTTP load generator, ApacheBench (ab) replacement, formerly known as rakyll/boom"
|
||||
HOMEPAGE="https://github.com/rakyll/hey"
|
||||
SRC_URI="https://${EGO_SRC}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
RESTRICT="test"
|
||||
IUSE=""
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
S=${WORKDIR}/${P}/src/${EGO_SRC}
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}/${P}" GOBIN="${WORKDIR}/${P}/bin" \
|
||||
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${WORKDIR}/${P}/bin"/*
|
||||
dodoc README.md
|
||||
}
|
Binary file not shown.
@ -0,0 +1,43 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EGO_PN="github.com/google/cadvisor"
|
||||
|
||||
inherit user golang-build golang-vcs-snapshot
|
||||
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
COMMIT="8949c82"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DESCRIPTION="Analyzes resource usage and performance characteristics of running containers"
|
||||
HOMEPAGE="https://github.com/google/cadvisor"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 /dev/null ${PN}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
sed -i -e "/go get/d" src/${EGO_PN}/build/assets.sh || die
|
||||
sed -i -e "s/git describe.*/echo ${PV} )/"\
|
||||
-e "s/git rev-parse --short HEAD.*/echo ${COMMIT} )/"\
|
||||
src/${EGO_PN}/build/build.sh || die
|
||||
default
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
pushd "src/${EGO_PN}"
|
||||
GO_FLAGS="-v -work -x" VERBOSE="true" GOPATH="${S}:$(get_golibdir_gopath)" emake build
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
dobin src/${EGO_PN}/${PN}
|
||||
keepdir /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/log/${PN}
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
EGO_PN="github.com/containerd/${PN}"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
MY_PV="${PV/_rc/-rc.}"
|
||||
EGIT_COMMIT="v${MY_PV}"
|
||||
CONTAINERD_COMMIT="9b32062dc1f5a7c2564315c269b5059754f12b9d"
|
||||
SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
|
||||
DESCRIPTION="A daemon to control runC"
|
||||
HOMEPAGE="https://containerd.tools"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE="apparmor +btrfs +cri hardened +seccomp"
|
||||
|
||||
DEPEND="btrfs? ( sys-fs/btrfs-progs )
|
||||
seccomp? ( sys-libs/libseccomp )"
|
||||
RDEPEND=">=app-emulation/runc-1.0.0_rc5
|
||||
seccomp? ( sys-libs/libseccomp )"
|
||||
|
||||
S=${WORKDIR}/${P}/src/${EGO_PN}
|
||||
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
if [[ ${PV} != *9999* ]]; then
|
||||
sed -i -e "s/git describe --match.*$/echo ${PV})/"\
|
||||
-e "s/git rev-parse HEAD.*$/echo $CONTAINERD_COMMIT)/"\
|
||||
-e "s/-s -w//" \
|
||||
Makefile || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local options=( $(usex btrfs "" "no_btrfs") $(usex cri "" "no_cri") $(usex seccomp "seccomp" "") $(usex apparmor "apparmor" "") )
|
||||
export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor
|
||||
LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '') BUILDTAGS="${options[@]}" emake
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
dodir /var/lib/containerd
|
||||
dobin bin/containerd{-shim,-stress,} bin/ctr
|
||||
}
|
@ -1,2 +1,2 @@
|
||||
DIST VBoxGuestAdditions_5.2.22.iso 58013696 BLAKE2B 196f0048b685200328bcf753f3df23eac6477ce863885e93a54951795368bf62bdaa497589001ec203d75809b1f74ebbaa80419406d26bc7db43a131f5b9d698 SHA512 b320174b2f2ef796ac2c9c920579be38f0cedaa037d21992863ac355ecf6e99ae2aea56c70fb2034e9e03afac2cd7297f7717b447a6981701755593110164d37
|
||||
DIST VBoxGuestAdditions_6.0.0_BETA3.iso 73289728 BLAKE2B f399c4701c6c856c40babd81869816e43e3e954a3d2b12f1662503782caf68b09904f5511a5e8776831aa1a1049cdf0c19ccbc7cbb86ac4fa615f240c29aea3c SHA512 49eaca8334819f36edcfcf7d9070c0ea77db273bcb9e6053eea84a90ca3c7d04aef8129fbc0d41c14b4e26d64b1e9212b0efbe549f38ddd03d362429333e0475
|
||||
DIST VBoxGuestAdditions_6.0.0_RC1.iso 75374592 BLAKE2B 0315af8f8eb7925ed5f5ade204ebdbd85c175bd43013ca878bce88a589c972651aa04ed1ac0f70f0d5c535c10ff760fd8fa4534b256b1e866f51a8e614ccd0ba SHA512 092fc44442f45ebcf8352dac2766522e32899a9f1e37413cae841178fd776f7fe47d045e65679bd7d14eac50c3d6508a27174b52beae89da0e8a0399451a58e6
|
||||
|
@ -1,7 +1,8 @@
|
||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
|
||||
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.0_BETA3-127054.tar.gz 23311292 BLAKE2B bf5ae284691fb1fef1f845d47cc61b9a9bc28affe1131424a56331d1364c7611f9058be731de76057ca61e404e8faf5ea026bd245191533b367cecccb3e55dbf SHA512 e49429f7205a9e2d69d3a80ecbd3b36d96a5a343c3d6b9066f231827bf3d58040c6cb4e00701f8d61c004e442ef06328495d26969109bb64ce1b08f350769d1f
|
||||
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.0_RC1-127378.tar.gz 23311613 BLAKE2B 4846abf409305aff1f08b8a02b3b54e2e1a986efede882ee6e7fe339cef569ea9b2d7dc6c8b5fd5267e64714f9a67b3da857dbb21b6cc26d7badb1d889054ee5 SHA512 bc9c19591cb98bf2c3372bdd4fc90be55c46c7c840e18c73bca063665806df570d77e5ef3c81910334b971eb360b0fa41f2602d6ddf5ad8dfda3a41362450748
|
||||
DIST VirtualBox-5.2.22-126460-Linux_amd64.run 88821201 BLAKE2B 1b0433844247ee9531af915dcbb740183fa29fb296f8c78b4165cc3b48300da71f7d329026983da581ffff0d7b8976a2e5e32d5e948861a557ddfa2437813ea0 SHA512 22b20a68884a114818fcdfe9a459a7c3b1b3598526a74cc66407f5bcdc6eb6bcbe022b820477ccdc081e22349777b73fac9d6126585ee3c8fa0d3d24624006f3
|
||||
DIST VirtualBox-5.2.22-126460-Linux_x86.run 87817677 BLAKE2B 5f11e5f92386c9524869082cf1a5af413c69fe5b36b1ace58887076000c7b928267eb7c3be22282885d6871ccdcee981ec79a526c71f281f0e8ada5858194851 SHA512 32d44b6d691e33a1ee1426cb7a3cb3648722709c588d177951b8be802546faadfd612567981bbbfed3d782b18260e6e638e7879813f3b06bb5a8387b052b0227
|
||||
DIST VirtualBox-6.0.0_BETA3-127054-Linux_amd64.run 145223121 BLAKE2B 78d1a7c51ddfb2e843dad815d9a084177195bb53287412a9e0ed5aae52416e90f2b658e566fd71eba259f3cdb373048268b0cd9be15e046ee3f8e8b941750d20 SHA512 d6aa89d7881d2794df16eb2340a22c97fb91bbaf94e31754301b7fbb62239f3ec4097ee9f2d105dc1e1758cd43890ddef8fd0cb8c2cba87e45d76794140ab8df
|
||||
DIST VirtualBox-6.0.0_BETA3-127054-Linux_x86.run 144270796 BLAKE2B 86be2e8e8309cd9754f3b6425799b8b76057ab215b23da315f6694ccd81bb5b34c2869d2a24e41f407cf2decaad40b5f7e5de33ee2f5e3803b3aacd16c0f2007 SHA512 65ea935fb201171473492ae27ae0b94848e899a78263653897253027500fe62aad4127d3022981bb838cefc439df03d5a856d3f31d02dcf8ccef2b12359e64f7
|
||||
DIST VirtualBox-6.0.0_RC1-127378-Linux_amd64.run 146912718 BLAKE2B f7f289967214b70b3ead711e7cc7ea75d173e3c5734cda7de566b21ef5b864134fa0fa713ec71c20c1486d6e17ef6d54e266745182d6f58996d577304ac56521 SHA512 41481a885f02f95adccd45ff3c2f0b5cedfed0e5607f5d9700e01a3bb6b050a18055d55abe9500948d7c34fdcecb5a6e0558d39432fe1bc13fc3ce49e96961c8
|
||||
DIST VirtualBox-6.0.0_RC1-127378-Linux_x86.run 145765835 BLAKE2B 897baa22ac6778dd43ccbd49251a5aa9bf84cd1ed3a469e34a4d2427a6f1ed183193f770d3710e68230ab59c9199a04c6cb808e56320a84b561ab9ff116f44df SHA512 19ce605ae5108352d509eca5504179ddaee8c523dec9d34b25cdd9274952423a0771eb0f4e9a2082cf642b3f9cc2186f7b696dfc947a9e87929e6c8058e2b19e
|
||||
DIST VirtualBoxSDK-5.2.22-126460.zip 10154660 BLAKE2B e0a0106f695ca7198d4b2ac5c62bb435fe7934858115dcb3aed57b40d82655bd54cbbae63b279132c23762a227c53affe68131a0bf9452c69dcaf2162b1e4ebf SHA512 1d34b8f7f32602b5656fdb6184e6c35cc54d6ecb36bc41d7df3e154f18c27ea5938635969feb69defe86a53897eee87792514967f15810224ee89e8e523d2b29
|
||||
DIST VirtualBoxSDK-6.0.0_RC1-127378.zip 10749892 BLAKE2B f9b604aefc0e2e0c385e7ba6ce466e681e0154f194542399f44a50f5811798b4ba8be433ac1b6d53e3d24e7be696cdcd5c82f995f6058fce7ef4fd4a1f865177 SHA512 5f30d29527fd7ad1c8df70e2f30071577569e8fadc3bcdf7fcf5a1e164f9290b1f2aa10f8437a8651dfb09bc401501c99682b8755adb34acd4cdfb2b5b576e35
|
||||
|
@ -1,2 +1,2 @@
|
||||
DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
|
||||
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.0_BETA3-127054.tar.gz 23311292 BLAKE2B bf5ae284691fb1fef1f845d47cc61b9a9bc28affe1131424a56331d1364c7611f9058be731de76057ca61e404e8faf5ea026bd245191533b367cecccb3e55dbf SHA512 e49429f7205a9e2d69d3a80ecbd3b36d96a5a343c3d6b9066f231827bf3d58040c6cb4e00701f8d61c004e442ef06328495d26969109bb64ce1b08f350769d1f
|
||||
DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.0_RC1-127378.tar.gz 23311613 BLAKE2B 4846abf409305aff1f08b8a02b3b54e2e1a986efede882ee6e7fe339cef569ea9b2d7dc6c8b5fd5267e64714f9a67b3da857dbb21b6cc26d7badb1d889054ee5 SHA512 bc9c19591cb98bf2c3372bdd4fc90be55c46c7c840e18c73bca063665806df570d77e5ef3c81910334b971eb360b0fa41f2602d6ddf5ad8dfda3a41362450748
|
||||
|
@ -1,4 +1,4 @@
|
||||
DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
|
||||
DIST VirtualBox-6.0.0_BETA3.tar.bz2 151284212 BLAKE2B b6bcb67b773bf013bb17090de90c4933c050742814fcad1b9c943cfb07cb9771beba26b9a4956f5206e8bf47651669e646acf0d16ed45e59b580e5f1cc71d7a1 SHA512 0ac8abf3c67b6d4521532f79e4f2d7562a076dcb018b9ad80a790e86b438dbd89ab723fcd514434206a6e6875617c124627b0c4031dfec1c1f830a0b1685d1d1
|
||||
DIST VirtualBox-6.0.0_RC1.tar.bz2 152834812 BLAKE2B 6be1d32b251daf99296ef0a980fabfd78555c8e6a6ae870bf3d1f978c1d36a494b2ac3f07dc9887a2597768c15bdc3a9489f5208a50beb32bd65eed8372d6b28 SHA512 25e9f0716293fcd8e0338cd23b6d7101b288bf9c1cac7d312c2f14910349180f4c8e6697d6641c4c05d15418df0ea907970cdb5282ca2a741d53e6ec949e60c4
|
||||
DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
|
||||
DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2732 BLAKE2B a138e715d99f135f16ca21c92781bf6cd8913f7f766bb598eddcd63e98280e568e646f56bbd0a3714f273457ca90db0b77ec7940ba25028506a22891f1af7b2d SHA512 954e4b40d6e272efe756ee0965adb4110d45f764433a89080fda7ebaebbc20031f86a3e0027dfdaa1c6a7d6379a1af557cea71512504e4b57b5f5adbfc86b56e
|
||||
|
@ -1,2 +1,2 @@
|
||||
DIST vbox-kernel-module-src-5.2.22.tar.xz 638492 BLAKE2B 71aba29b056bb3dfeffbf4632fbf7f15d89b988267ba24c766b78b1d9c50a4d27fb1b8e699108b973af68024f9f77ca0a8ad787355d7342fe1400f14189487ff SHA512 3361bb536af8e8d490377be04d1b1b9af478538e23ec409d3e0205ad930c16e5228c57ae7d92d214ac533ae64298d9eaff3c9284ff9bb308108d1ad7d69fb507
|
||||
DIST vbox-kernel-module-src-6.0.0_beta3.tar.xz 665456 BLAKE2B c3cbac6898a77e9b8df8b0e13f2533f367e308b13c49890e74fc237dc29ffa492960092828c7161fbee776caf68f159c44786243ba0a2a64571770f80c137c68 SHA512 0a1b4d3c0f3c42880d9ad497b90c36c4760db1e061b7b69f2b2f6df6df083f4f98c57a7b9a79c5c9fc66385bf1fe0dc84fbecafa5ff5c4b9114f5a020e17e566
|
||||
DIST vbox-kernel-module-src-6.0.0_rc1.tar.xz 665952 BLAKE2B 1e6b1727057081aeb1e56f17ce1b6652f305094a93943b2ca296e2ac9fab1ef4a2f3fead63ba65c439ed36f3654367b09e3b7fecef8534ae59586fe0639aafe2 SHA512 4a83de795d783a89b12f415be8315a632c0323568adc149015568d56f924414278c629203967cabe29504428baf8fe6181889c42e2ffe7b0bb2bdd855dddd090
|
||||
|
@ -1,4 +1,4 @@
|
||||
DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
|
||||
DIST VirtualBox-6.0.0_BETA3.tar.bz2 151284212 BLAKE2B b6bcb67b773bf013bb17090de90c4933c050742814fcad1b9c943cfb07cb9771beba26b9a4956f5206e8bf47651669e646acf0d16ed45e59b580e5f1cc71d7a1 SHA512 0ac8abf3c67b6d4521532f79e4f2d7562a076dcb018b9ad80a790e86b438dbd89ab723fcd514434206a6e6875617c124627b0c4031dfec1c1f830a0b1685d1d1
|
||||
DIST VirtualBox-6.0.0_RC1.tar.bz2 152834812 BLAKE2B 6be1d32b251daf99296ef0a980fabfd78555c8e6a6ae870bf3d1f978c1d36a494b2ac3f07dc9887a2597768c15bdc3a9489f5208a50beb32bd65eed8372d6b28 SHA512 25e9f0716293fcd8e0338cd23b6d7101b288bf9c1cac7d312c2f14910349180f4c8e6697d6641c4c05d15418df0ea907970cdb5282ca2a741d53e6ec949e60c4
|
||||
DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
|
||||
DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2732 BLAKE2B a138e715d99f135f16ca21c92781bf6cd8913f7f766bb598eddcd63e98280e568e646f56bbd0a3714f273457ca90db0b77ec7940ba25028506a22891f1af7b2d SHA512 954e4b40d6e272efe756ee0965adb4110d45f764433a89080fda7ebaebbc20031f86a3e0027dfdaa1c6a7d6379a1af557cea71512504e4b57b5f5adbfc86b56e
|
||||
|
@ -1 +0,0 @@
|
||||
DIST vpcs-0.6-src.tbz 131820 BLAKE2B de9216360bf666eed1b94ce4101fd47fac78845bba4c882d4855eae48652c61efc549b01968faab7212cff60bafe2b1586ede51c3be33bd5419834da13fca928 SHA512 a740f264551de9e8dd95de2fbba444d9525f63c4c5473aea6cf1016c99d7866f3d0623f9f934bda7a0b565c23179647734c400ce3bb685fdab8ec6c35f25d671
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">gns-3</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,44 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Simulate up to 9 PCs in place of VMware boxes in a Dynamips network"
|
||||
HOMEPAGE="http://vpcs.sourceforge.net"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${PV}/${P}-src.tbz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=""
|
||||
RDEPEND=""
|
||||
|
||||
S="${S}/src/"
|
||||
|
||||
src_prepare() {
|
||||
# move Makefile in place
|
||||
cp Makefile.linux Makefile
|
||||
|
||||
# replace hardcoded CFLAGS with user set CFLAGS
|
||||
# append -fno-strict-aliasing to CFLAGS to suppress QA issues from upstream
|
||||
# add user $LDFLAGS in the front and remove -s that strips binary
|
||||
sed -e "s/-D\$(CPUTYPE)/${CFLAGS} -fno-strict-aliasing/" \
|
||||
-e "s/^LDFLAGS=/LDFLAGS=${LDFLAGS} /" \
|
||||
-e "s/-s //" \
|
||||
-i Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC=$(tc-getCC)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
#put binary in /usr/bin
|
||||
dobin vpcs
|
||||
|
||||
doman ../man/vpcs.1
|
||||
}
|
Binary file not shown.
@ -1,3 +0,0 @@
|
||||
DIST libbfio-alpha-20120425.tar.gz 1569560 BLAKE2B e104c6c5e1a94410c8e4dc8020764cea0a1d0d12447d1b47483168e9a3ea6ec0233000b7cc9fd87dee30dc7df673e24fbd7649ef170ddad2ff4ba2e67d2e79ba SHA512 058d5018202c404d789531f308b66d9e72924f4ce9d6365477c84a327a3fe2a4efb9cd0cc173f29dbf2d18cf366772e5577ffea6d0953b752865cbdf4da48c20
|
||||
DIST libbfio-alpha-20130609.tar.gz 1858612 BLAKE2B 42a445ee31a97c764829f0078725da88f7ec9d1565509ad8ff7a2a0fb698a634ad30c9d17fdd25c9654d0d4281b32c0aab3f87f04730a51bbb0e9bb9c73f537d SHA512 b2f46c7631aa8dca63d6e915c69ba6136f0f777f138708c4751e24f3e96a2399721182ce281e032b617b17ce631876cefb8ef686b9bd1cb866f9f1033d1dd18b
|
||||
DIST libbfio-alpha-20130721.tar.gz 1899281 BLAKE2B 13edc70920e455d3058a7d77ce3e87439f4abf2a193cb544c5926163f46c798ae3f1dd26bf330d53d69ff5e8f20109b7c14e54931f6ede21e879a9173bae94cb SHA512 9a9e8f913e145d5dcf5ee94351b4023a8d35492f5c9c3863f4caf0850e45f1b9c79ee3ec7e0565f85f91d11ff25d134f2c770b176e3e1888b78c984fe4b8c2a8
|
@ -1,27 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit versionator
|
||||
|
||||
MY_DATE="$(get_version_component_range 3)"
|
||||
|
||||
DESCRIPTION="Library for providing a basic file input/output abstraction layer"
|
||||
HOMEPAGE="https://github.com/libyal/libbfio"
|
||||
SRC_URI="http://dev.pentoo.ch/~zero/distfiles/${PN}-alpha-${MY_DATE}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="unicode"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_DATE}"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable unicode wide-character-type)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install DESTDIR="${D}" || die "Failed to install"
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit versionator
|
||||
|
||||
MY_DATE="$(get_version_component_range 3)"
|
||||
|
||||
DESCRIPTION="Library for providing a basic file input/output abstraction layer"
|
||||
HOMEPAGE="https://github.com/libyal/libbfio"
|
||||
SRC_URI="http://dev.pentoo.ch/~zero/distfiles/${PN}-alpha-${MY_DATE}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~ppc ~x86"
|
||||
IUSE="unicode"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_DATE}"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable unicode wide-character-type)
|
||||
}
|
@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit versionator
|
||||
|
||||
MY_DATE="$(get_version_component_range 3)"
|
||||
|
||||
DESCRIPTION="Library for providing a basic file input/output abstraction layer"
|
||||
HOMEPAGE="https://github.com/libyal/libbfio"
|
||||
SRC_URI="http://dev.pentoo.ch/~zero/distfiles/${PN}-alpha-${MY_DATE}.tar.gz"
|
||||
|
||||
LICENSE="LGPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~hppa ~ppc ~x86"
|
||||
IUSE="unicode"
|
||||
|
||||
S="${WORKDIR}/${PN}-${MY_DATE}"
|
||||
|
||||
src_configure() {
|
||||
econf $(use_enable unicode wide-character-type)
|
||||
}
|
Binary file not shown.
@ -0,0 +1,52 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit user golang-build golang-vcs-snapshot systemd
|
||||
|
||||
EGO_PN="github.com/prometheus/pushgateway"
|
||||
EGIT_COMMIT="v${PV/_rc/-rc.}"
|
||||
GIT_COMMIT="d5a56ba"
|
||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DESCRIPTION="Prometheus push acceptor for ephemeral and batch jobs"
|
||||
HOMEPAGE="https://github.com/prometheus/pushgateway"
|
||||
SRC_URI="${ARCHIVE_URI}"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/go-1.11
|
||||
dev-util/promu"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 -1 ${PN}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s/{{.Revision}}/${GIT_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
pushd src/${EGO_PN} || die
|
||||
mkdir -p bin || die
|
||||
GO111MODULE=on GOPATH="${S}" promu build -v --prefix bin || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd src/${EGO_PN} || die
|
||||
dobin bin/pushgateway
|
||||
dodoc {README,CHANGELOG,CONTRIBUTING}.md
|
||||
popd || die
|
||||
keepdir /var/lib/${PN} /var/log/${PN}
|
||||
fowners ${PN}:${PN} /var/lib/${PN} /var/log/${PN}
|
||||
newinitd "${FILESDIR}"/${PN}-1.initd ${PN}
|
||||
newconfd "${FILESDIR}"/${PN}-1.confd ${PN}
|
||||
insinto /etc/logrotate.d
|
||||
newins "${FILESDIR}/${PN}.logrotated" "${PN}"
|
||||
systemd_dounit "${FILESDIR}/${PN}-1.service"
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
DIST snmp_exporter-0.11.0.tar.gz 3631252 BLAKE2B 9786a17d667f8e6d45691f9df099f67ce103fbb93c9069ca497e59ff9207de05335fe3fac56d3d3bc0617069eb26a9c5b5682a8ec65c78d7e44303002427e9fa SHA512 a5d671d1bf2a98bbdb6ff85ac84ca5fe8da8d075bb1133aae650e73c45770be0403bcfea93595b2f5bc75b2e50cf96ccada0407d6956b4b5d1dc5b7ff604254a
|
||||
DIST snmp_exporter-0.12.0.tar.gz 3631641 BLAKE2B 4a1be9f51ffd9c2bc7a2eeb853d30499ae967e53980f81a3b14e9d0a201f33b7f3eec76711a4f3d8d54f5f07b74f1f66aab11093e7c0ab076f544da2ac8399f8 SHA512 9da5e4c43bf59562541992456c046063874860f2e7a24f0693b2f5655e0eb6eacd18734a4c932fce01bb535ac7530d71234bfa9d977fcbf15a1468f642e1d157
|
||||
DIST snmp_exporter-0.13.0.tar.gz 4096479 BLAKE2B a41ad876ca73a997bc48ac6fcdbc3ca01ff1c689f2f908cf14874f948a50ecd846a2996fc0cbf7d86a473fb80e42e15a7aca1c1b57f2cb3ebfa68a62db8d13ac SHA512 6e4a607cb58e6721acfd77b570dc62589cba5b23d250c9f654659632c97039156869722e1e43bec2b0656f08021ff89b4089f6b91ef28229964f32a34e0067f3
|
||||
DIST snmp_exporter-0.14.0.tar.gz 1458373 BLAKE2B 3251022b236b1da7c675fff1119bf358a7b19bec02c552357dde689654e655f7ab5569c5580db8d8cb587860dfb18a5111220bcb07041488ff2d02fe4d204d44 SHA512 58439e9ef8f05e48ebfb4ea82d42568e40968224e609485960f8a81c6e349ca18d16ec3f4eee469dfaa0b9fd50feb28c1e6a6a988fb251485748f10dbc4f8d12
|
||||
|
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2018 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit user golang-build golang-vcs-snapshot
|
||||
|
||||
EGO_PN="github.com/prometheus/snmp_exporter"
|
||||
EGIT_COMMIT="v${PV/_rc/-rc.}"
|
||||
SNMP_EXPORTER_COMMIT="da73490"
|
||||
ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DESCRIPTION="Prometheus exporter for snmp metrics"
|
||||
HOMEPAGE="https://github.com/prometheus/snmp_exporter"
|
||||
SRC_URI="${ARCHIVE_URI}"
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND=">=dev-lang/go-1.11
|
||||
dev-util/promu
|
||||
net-analyzer/net-snmp"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup ${PN}
|
||||
enewuser ${PN} -1 -1 -1 ${PN}
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s/{{.Revision}}/${SNMP_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
pushd src/${EGO_PN} || die
|
||||
mkdir -p bin || die
|
||||
GO111MODULE=on GOPATH="${S}" promu build -v --prefix bin || die
|
||||
pushd generator || die
|
||||
GO111MODULE=on GOPATH="${S}" go build -o ../bin/generator . || die
|
||||
popd || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd src/${EGO_PN} || die
|
||||
dobin bin/*
|
||||
dodoc {README,CONTRIBUTING}.md generator/{FORMAT,README}.md generator/generator.yml
|
||||
insinto /etc/snmp_exporter
|
||||
newins snmp.yml snmp.yml.example
|
||||
popd || die
|
||||
keepdir /var/lib/snmp_exporter /var/log/snmp_exporter
|
||||
fowners ${PN}:${PN} /var/lib/snmp_exporter /var/log/snmp_exporter
|
||||
newinitd "${FILESDIR}"/${PN}.initd ${PN}
|
||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
||||
}
|
Binary file not shown.
@ -1,2 +0,0 @@
|
||||
DIST fujiplay-1.33.tar.gz 12588 BLAKE2B 4be2b4d44696f5d43942c19cde308874684c87762b2778026750c4db9ba249c2ec8b7986bca5c526c7199289b3094157c068067db38a015372fd6fbd5a1e285d SHA512 168ce95b6926da2438fb858b2537060877145b28638217214f72833fcc75b76dd7e5bba9ed0ca966cd2f7f1c31ca3302ee4662907bf743c393314d615d795149
|
||||
DIST fujiplay.tgz 12588 BLAKE2B 4be2b4d44696f5d43942c19cde308874684c87762b2778026750c4db9ba249c2ec8b7986bca5c526c7199289b3094157c068067db38a015372fd6fbd5a1e285d SHA512 168ce95b6926da2438fb858b2537060877145b28638217214f72833fcc75b76dd7e5bba9ed0ca966cd2f7f1c31ca3302ee4662907bf743c393314d615d795149
|
@ -1,75 +0,0 @@
|
||||
--- a/fujiplay.c 1999-02-23 10:30:31.000000000 +0100
|
||||
+++ b/fujiplay.c 2006-08-05 00:50:08.000000000 +0200
|
||||
@@ -759,40 +759,38 @@
|
||||
return 1;
|
||||
}
|
||||
|
||||
-const char *Usage = "\
|
||||
-Usage: fujiplay [OPTIONS] PICTURES... (download)
|
||||
- charge NUMBER (recharge the flash)
|
||||
- shoot (take picture)
|
||||
- preview (preview to standard output)
|
||||
- upload FILES...
|
||||
- delete FILES...
|
||||
- setid STRING (set camera ID)
|
||||
- setflash MODE (0=Off, 1=On, 2=Strobe, 3=Auto)
|
||||
- setdate gmt|local|YYYYMMDDHHMMSS
|
||||
-Options:
|
||||
- -B NUMBER Set baudrate (115200, 57600, 38400, 19200, 9600 or 0)
|
||||
- -D DEVICE Select another device file (default is /dev/fujifilm)
|
||||
- -L List command set
|
||||
- -7 DS-7 compatibility mode (experimental)
|
||||
- -d Delete pictures after successful download
|
||||
- -f Force (overwrite existing files)
|
||||
- -p Assume picture numbers instead of frame numbers
|
||||
- -h Display this help message
|
||||
- -v Version information
|
||||
-Pictures:
|
||||
- all All pictures
|
||||
- last Last picture
|
||||
- 4 Only picture 4
|
||||
- 2-10 Pictures between 2 and 10
|
||||
-Files:
|
||||
- DSCxxxxx.JPG Files to delete or to upload into the camera
|
||||
-";
|
||||
-
|
||||
-const char *Copyright = "\
|
||||
-Fujiplay, $Id: fujiplay.c,v 1.33 1999/02/22 14:13:01 bousch Exp $
|
||||
-Written by Thierry Bousch <bousch@topo.math.u-psud.fr>
|
||||
-Public domain. Absolutely no warranty.
|
||||
-";
|
||||
+const char *Usage = "\n" \
|
||||
+"Usage: fujiplay [OPTIONS] PICTURES... (download) \n" \
|
||||
+" charge NUMBER (recharge the flash) \n" \
|
||||
+" shoot (take picture) \n" \
|
||||
+" preview (preview to standard output) \n" \
|
||||
+" upload FILES... \n" \
|
||||
+" delete FILES... \n" \
|
||||
+" setid STRING (set camera ID) \n" \
|
||||
+" setflash MODE (0=Off, 1=On, 2=Strobe, 3=Auto) \n" \
|
||||
+" setdate gmt|local|YYYYMMDDHHMMSS \n" \
|
||||
+"Options: \n" \
|
||||
+" -B NUMBER Set baudrate (115200, 57600, 38400, 19200, 9600 or 0) \n" \
|
||||
+" -D DEVICE Select another device file (default is /dev/fujifilm) \n" \
|
||||
+" -L List command set \n" \
|
||||
+" -7 DS-7 compatibility mode (experimental) \n" \
|
||||
+" -d Delete pictures after successful download \n" \
|
||||
+" -f Force (overwrite existing files) \n" \
|
||||
+" -p Assume picture numbers instead of frame numbers \n" \
|
||||
+" -h Display this help message \n" \
|
||||
+" -v Version information \n" \
|
||||
+"Pictures: \n" \
|
||||
+" all All pictures \n" \
|
||||
+" last Last picture \n" \
|
||||
+" 4 Only picture 4 \n" \
|
||||
+" 2-10 Pictures between 2 and 10 \n" \
|
||||
+"Files: \n" \
|
||||
+" DSCxxxxx.JPG Files to delete or to upload into the camera \n";
|
||||
+
|
||||
+const char *Copyright = "\n" \
|
||||
+"Fujiplay, $Id: fujiplay.c,v 1.33 1999/02/22 14:13:01 bousch Exp $\n" \
|
||||
+"Written by Thierry Bousch <bousch@topo.math.u-psud.fr>\n" \
|
||||
+"Public domain. Absolutely no warranty.\n";
|
||||
|
||||
static void sigint_handler (int sig)
|
||||
{
|
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Utility for Fujifilm/Leica digital cameras (via serial port)"
|
||||
HOMEPAGE="https://www.math.u-psud.fr/~bousch/fujiplay.html"
|
||||
SRC_URI="https://www.math.u-psud.fr/~bousch/${PN}.tgz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-unterminated-strings.patch )
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin fujiplay yycc2ppm
|
||||
dodoc README fujiplay.lsm mx700-commands.html
|
||||
emake all clean
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ln -s /dev/ttyS0 /dev/fujifilm || die
|
||||
elog "A symbolic link /dev/ttyS0 -> /dev/fujifilm was created."
|
||||
elog "You may want to create a serial group to allow non-root"
|
||||
elog "members R/W access to the serial device."
|
||||
elog
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
rm -f /dev/fujifilm || die
|
||||
elog
|
||||
elog "The symbolic link /dev/fujifilm was removed."
|
||||
elog
|
||||
}
|
@ -1,51 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=0
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="Utility for Fujifilm/Leica digital cameras (via serial port)"
|
||||
HOMEPAGE="http://topo.math.u-psud.fr/~bousch/fujiplay.html"
|
||||
SRC_URI="http://topo.math.u-psud.fr/~bousch/${PN}.tgz"
|
||||
|
||||
LICENSE="public-domain"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 x86"
|
||||
IUSE=""
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
epatch "${FILESDIR}"/${P}-unterminated-strings.patch
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
|| die "emake failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin fujiplay yycc2ppm || die
|
||||
dodoc README fujiplay.lsm mx700-commands.html
|
||||
emake all clean
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ln -s /dev/ttyS0 /dev/fujifilm
|
||||
elog "A symbolic link /dev/ttyS0 -> /dev/fujifilm was created."
|
||||
elog "You may want to create a serial group to allow non-root"
|
||||
elog "members R/W access to the serial device."
|
||||
echo
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
rm -f /dev/fujifilm
|
||||
echo
|
||||
elog "The symbolic link /dev/fujifilm was removed."
|
||||
echo
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
@ -1,2 +1 @@
|
||||
DIST ranger-1.9.1.tar.gz 245872 BLAKE2B 3ed48c4fe0cb42be7e001508a9c1f558e415e155eb5f68c9a8eb3e6d906ad287080391ab0310c0e9d67c9bc3210621827dc11107d99ac4173a4d8c64d74ab28b SHA512 c7fdc8f423860c7c420d7be61ebcc92629e444529c982f24260a9eeb68452adbbc6d40d53921c556da3d08a75b1c718bb05257cf869a15f7d932e8f00836cfe3
|
||||
DIST ranger-1.9.2.tar.gz 265295 BLAKE2B 93e4d8ff1ad41c9bdf94af4a3ed9ab013048d1a601242553592b0e246f000b3a0226644b126ae7ec1c70562ff80b3f6c6711ee0e53dc1b7363c9ddf8f5fa75cc SHA512 5eb4743beaf0478d745cce8e5bfc2ac07c98ab5784e9394772782d06c0bb27dcd5478ead191ac527f21cce76db09a51eb46db0fabc7993684a6b5aaec0d43104
|
||||
|
@ -1,43 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
||||
PYTHON_REQ_USE="ncurses"
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
EGIT_REPO_URI="https://github.com/ranger/ranger.git"
|
||||
inherit git-r3
|
||||
else
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 ~ppc x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A vim-inspired file manager for the console"
|
||||
HOMEPAGE="https://ranger.github.io/"
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="virtual/pager"
|
||||
DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
src_prepare() {
|
||||
# use versioned doc path
|
||||
sed -i "s|share/doc/ranger|share/doc/${PF}|" setup.py doc/ranger.1 || die
|
||||
|
||||
distutils-r1_src_prepare
|
||||
}
|
||||
|
||||
python_test() {
|
||||
py.test -v tests/ranger || die "Tests failed under ${EPYTHON}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
elog "Ranger has many optional dependencies to support enhanced file previews."
|
||||
elog "See the README or homepage for more details."
|
||||
fi
|
||||
}
|
Binary file not shown.
@ -1,3 +0,0 @@
|
||||
DIST gentoolkit-dev-0.2.8.3.tar.gz 53322 BLAKE2B 65136a748a971688371245a5bc46d9d45689c14fdb0a772c0d2a94264cec4464c90345b9d089b855acae91db92b08b604400ada09ffb2c08f77bb3662ea952b3 SHA512 f55362e46928633598cb07640505202521e3f4bdaade1faecb4ac14ba1bee0489207cb7ab03531e06d7922446a57083365f51c63ceb8cf1e0badba9ac503c16e
|
||||
DIST gentoolkit-dev-0.3.0.tar.gz 58655 BLAKE2B 5784ed2b2c6f92f2b6bf4a0d3d4a61d2f9defe20c438d273c5a89ed7b980afec08dd70fabc787066acd2aeea4ee5fdd6127d42cc500aacd8dcbd690ff7124d63 SHA512 d15f6546cf88af0832c14eb003c72b5906bb9b9f078c903e1e444b12c2e432fd1a2fa077eda5496e222cb50cfd5a705e86044b9a1c0164ac6b4b38268461ced5
|
||||
DIST gentoolkit-dev-0.3.1.tar.gz 58472 BLAKE2B 33ad722d23abfa94fcc73dd505794cde935119aafa8ae6f2828b59e6f1e95c00dcbb751732f69327d2278751350fb2aa25e3f7c2a33cf35367b10edad5744193 SHA512 e47fa698710132914c2de6d25f7450b90383b9d6283e927221bec30be3a56de93c09e81c35e025dee2f01bd5c2f10cf231fc392c415849029529712cd81aea19
|
@ -1,25 +0,0 @@
|
||||
From 2da4232cfd9597b829dda4bcfbf3aab25f243950 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Ruppert <idl0r@gentoo.org>
|
||||
Date: Sat, 11 May 2013 23:56:25 +0200
|
||||
Subject: [PATCH] Fix echangelog test
|
||||
|
||||
---
|
||||
src/echangelog/test/test.sh | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/echangelog/test/test.sh b/src/echangelog/test/test.sh
|
||||
index 0559113..53bb0b5 100755
|
||||
--- a/src/echangelog/test/test.sh
|
||||
+++ b/src/echangelog/test/test.sh
|
||||
@@ -160,7 +160,7 @@ ebegin "Preparing echangelog"
|
||||
|
||||
if [ -e "../echangelog" ]; then
|
||||
cp ../echangelog "${_ROOT}/tmp" || set $?
|
||||
- sed -i -e 's:use POSIX qw.*:use POSIX qw(setlocale getcwd);\nuse TEST qw(strftime);:' "${_ROOT}/tmp/echangelog" || set $?
|
||||
+ sed -i -e 's:use POSIX qw.*:use POSIX qw(locale_h setlocale getcwd);\nuse TEST qw(strftime);:' "${_ROOT}/tmp/echangelog" || set $?
|
||||
eend ${1:-0} || exit ${1}
|
||||
else
|
||||
eerror "error"
|
||||
--
|
||||
1.8.1.5
|
||||
|
@ -1,57 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4} )
|
||||
|
||||
PYTHON_REQ_USE="xml"
|
||||
|
||||
inherit python-r1 eutils
|
||||
|
||||
DESCRIPTION="Collection of developer scripts for Gentoo"
|
||||
HOMEPAGE="https://www.gentoo.org/proj/en/portage/tools/index.xml"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
IUSE="test"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
CDEPEND="
|
||||
sys-apps/portage[${PYTHON_USEDEP}]
|
||||
dev-lang/perl
|
||||
sys-apps/diffutils"
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
!>=app-portage/gentoolkit-0.4.0
|
||||
test? ( ${CDEPEND} )"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
${CDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${P}-tests.patch"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# echangelog test is not able to run as root
|
||||
# the EUID check may not work for everybody
|
||||
if [[ ${EUID} -ne 0 ]];
|
||||
then
|
||||
python_foreach_impl emake test
|
||||
else
|
||||
ewarn "test skipped, please re-run as non-root if you wish to test ${PN}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
python_replicate_script "${ED}"/usr/bin/imlate
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "This package is deprecated. ebump, ekeyword and imlate have "
|
||||
ewarn "been moved to >=app-portage/gentoolkit-0.4.0"
|
||||
ewarn "The remaining gentoolkit-dev commands are considered deprecated"
|
||||
}
|
@ -1,86 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
PYTHON_REQ_USE="xml"
|
||||
|
||||
inherit python-r1
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://anongit.gentoo.org/proj/gentoolkit.git
|
||||
https://anongit.gentoo.org/git/proj/gentoolkit.git"
|
||||
EGIT_BRANCH="gentoolkit-dev"
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.gz"
|
||||
KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Collection of developer scripts for Gentoo"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
CDEPEND="
|
||||
sys-apps/portage[${PYTHON_USEDEP}]
|
||||
dev-lang/perl
|
||||
sys-apps/diffutils"
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
!>=app-portage/gentoolkit-0.4.0
|
||||
test? ( ${CDEPEND} )"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
${CDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
if [[ -n ${EPREFIX} ]] ; then
|
||||
# fix shebangs of scripts
|
||||
local d p
|
||||
ebegin "Fixing shebangs"
|
||||
for d in src/* ; do
|
||||
p=${d#*/}
|
||||
sed -i \
|
||||
-e "1s:\(\(/usr\)\?/bin/\):${EPREFIX}\1:" \
|
||||
${d}/${p}* \
|
||||
|| die "failed to fix ${d}/${p}"
|
||||
done
|
||||
eend $?
|
||||
|
||||
# fix repo location
|
||||
sed -i \
|
||||
-e "s:portage\.db\['/'\]:portage.db['${EPREFIX}/']:g" \
|
||||
src/ekeyword/ekeyword.py \
|
||||
|| die "failed to set EPREFIX in ekeyword"
|
||||
# fix repo name
|
||||
sed -i \
|
||||
-e "s:repo='gentoo':repo='gentoo_prefix':g" \
|
||||
src/ekeyword/ekeyword.py \
|
||||
|| die "failed to set correct reponame in ekeyword"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# echangelog test is not able to run as root
|
||||
# the EUID check may not work for everybody
|
||||
if [[ ${EUID} -ne 0 ]]; then
|
||||
python_foreach_impl emake test
|
||||
else
|
||||
ewarn "test skipped, please re-run as non-root if you wish to test ${PN}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
python_replicate_script "${ED}"/usr/bin/{ekeyword,imlate}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "This package is deprecated. ebump, ekeyword and imlate have "
|
||||
ewarn "been moved to >=app-portage/gentoolkit-0.4.0"
|
||||
ewarn "The remaining gentoolkit-dev commands are considered deprecated"
|
||||
}
|
@ -1,87 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="5"
|
||||
|
||||
PYTHON_COMPAT=( python{2_7,3_4,3_5} )
|
||||
PYTHON_REQ_USE="xml"
|
||||
|
||||
inherit python-r1
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="git://anongit.gentoo.org/proj/gentoolkit.git
|
||||
https://anongit.gentoo.org/git/proj/gentoolkit.git"
|
||||
EGIT_BRANCH="gentoolkit-dev"
|
||||
else
|
||||
SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.gz
|
||||
https://dev.gentoo.org/~vapier/dist/${P}.tar.gz"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Collection of developer scripts for Gentoo"
|
||||
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Portage-Tools"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
CDEPEND="
|
||||
sys-apps/portage[${PYTHON_USEDEP}]
|
||||
dev-lang/perl
|
||||
sys-apps/diffutils"
|
||||
DEPEND="${PYTHON_DEPS}
|
||||
!>=app-portage/gentoolkit-0.4.0
|
||||
test? ( ${CDEPEND} )"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
${CDEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
if [[ -n ${EPREFIX} ]] ; then
|
||||
# fix shebangs of scripts
|
||||
local d p
|
||||
ebegin "Fixing shebangs"
|
||||
for d in src/* ; do
|
||||
p=${d#*/}
|
||||
sed -i \
|
||||
-e "1s:\(\(/usr\)\?/bin/\):${EPREFIX}\1:" \
|
||||
${d}/${p}* \
|
||||
|| die "failed to fix ${d}/${p}"
|
||||
done
|
||||
eend $?
|
||||
|
||||
# fix repo location
|
||||
sed -i \
|
||||
-e "s:portage\.db\['/'\]:portage.db['${EPREFIX}/']:g" \
|
||||
src/ekeyword/ekeyword.py \
|
||||
|| die "failed to set EPREFIX in ekeyword"
|
||||
# fix repo name
|
||||
sed -i \
|
||||
-e "s:repo='gentoo':repo='gentoo_prefix':g" \
|
||||
src/ekeyword/ekeyword.py \
|
||||
|| die "failed to set correct reponame in ekeyword"
|
||||
fi
|
||||
}
|
||||
|
||||
src_test() {
|
||||
# echangelog test is not able to run as root
|
||||
# the EUID check may not work for everybody
|
||||
if [[ ${EUID} -ne 0 ]]; then
|
||||
python_foreach_impl emake test
|
||||
else
|
||||
ewarn "test skipped, please re-run as non-root if you wish to test ${PN}"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
|
||||
python_replicate_script "${ED}"/usr/bin/{ekeyword,imlate}
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
ewarn "This package is deprecated. ebump, ekeyword and imlate have "
|
||||
ewarn "been moved to >=app-portage/gentoolkit-0.4.0"
|
||||
ewarn "The remaining gentoolkit-dev commands are considered deprecated"
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>tools-portage@gentoo.org</email>
|
||||
<name>Gentoo Portage tools team</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
Gentoolkit-dev is a collection of developer tools for the Gentoo distribution.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
@ -1,3 +0,0 @@
|
||||
DIST gs-pypi-0.1.tar.gz 15351 BLAKE2B fa1a1af502abf0bc4d7d77344c87da7632f5176d693decca3d7738c4ea8e9e6973cab342f155fb23e07053369cbf2e639130763a446fcc783efdb4a2363f6f70 SHA512 e7d8dabed21de28f327da3163e95ea16dfb63c27d502233c0f6eae7bf3146866498c492795eff5c7126bf56bf6dd1613457290ffab83962741d49bd9254f059f
|
||||
DIST gs-pypi-0.2.1.tar.gz 16608 BLAKE2B 498eb01321ff91e70d46315d64838b6b2770f12ec71fcbc0dc92ed14bdf96d08e88181739cb27faef881ffcbdc8ac08861b04498f45348783f53394a0a8b4925 SHA512 72c04ab621690b0e1e8aee489cef09ed3f04a84b4d1f5e0888913429f24c37e79e320d41c585d7e5a087b8f9e6859f6702c42d81c1086bb51ce77c9949af6ac0
|
||||
DIST gs-pypi-0.2.tar.gz 16582 BLAKE2B 8d331913165fc94d3aa2e1a1fbd9f11bde8834441520998b7341819ae669d6301190d1ac362b4ada4f8cc1ead858a5229bec2554eb6a1b172a613e762fade174 SHA512 b28143f6eb85151cee27c24f11fd8e2adae7115120cc38eeaaa9a59af49af9cee8423725db0babc0dec7ef357ed2485f8a360f69db9fb246f1097fc0f3c227b0
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=(python{2_7,3_4})
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="g-sorcery backend for pypi packages"
|
||||
HOMEPAGE="https://github.com/jauhien/gs-pypi"
|
||||
SRC_URI="https://github.com/jauhien/gs-pypi/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND="app-portage/g-sorcery[$(python_gen_usedep 'python*')]
|
||||
dev-python/beautifulsoup:4[$(python_gen_usedep 'python*')]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/*.8
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=(python{2_7,3_4,3_5})
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="g-sorcery backend for pypi packages"
|
||||
HOMEPAGE="https://github.com/jauhien/gs-pypi"
|
||||
SRC_URI="https://github.com/jauhien/gs-pypi/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND=">=app-portage/g-sorcery-0.2.1[bson(-),git(-),$(python_gen_usedep 'python*')]
|
||||
dev-python/beautifulsoup:4[$(python_gen_usedep 'python*')]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/*.8
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=(python{2_7,3_4})
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="g-sorcery backend for pypi packages"
|
||||
HOMEPAGE="https://github.com/jauhien/gs-pypi"
|
||||
SRC_URI="https://github.com/jauhien/gs-pypi/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND=">=app-portage/g-sorcery-0.2.1[bson(-),git(-),$(python_gen_usedep 'python*')]
|
||||
dev-python/beautifulsoup:4[$(python_gen_usedep 'python*')]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/*.8
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=(python{2_7,3_4})
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="g-sorcery backend for pypi packages"
|
||||
HOMEPAGE="https://github.com/jauhien/gs-pypi"
|
||||
SRC_URI="https://github.com/jauhien/gs-pypi/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
DEPEND=">=app-portage/g-sorcery-0.2[bson(-),$(python_gen_usedep 'python*')]
|
||||
dev-python/beautifulsoup:4[$(python_gen_usedep 'python*')]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/*.8
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
PYTHON_COMPAT=(python{2_7,3_4,3_5})
|
||||
|
||||
inherit distutils-r1 git-r3
|
||||
|
||||
DESCRIPTION="g-sorcery backend for pypi packages"
|
||||
HOMEPAGE="https://github.com/jauhien/gs-pypi"
|
||||
SRC_URI=""
|
||||
EGIT_BRANCH="master"
|
||||
EGIT_REPO_URI="https://github.com/jauhien/gs-pypi"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND=">=app-portage/g-sorcery-9999[bson(-),git(-),$(python_gen_usedep 'python*')]
|
||||
dev-python/beautifulsoup:4[$(python_gen_usedep 'python*')]"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
python_install_all() {
|
||||
distutils-r1_python_install_all
|
||||
doman docs/*.8
|
||||
}
|
@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>dolsen@gentoo.org</email>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>layman@gentoo.org</email>
|
||||
<name>Gentoo Layman team</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">jauhien/gs-pypi</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Binary file not shown.
@ -1 +0,0 @@
|
||||
DIST chm2pdf-0.9.1.tar.gz 19955 BLAKE2B 6f16f35d25904cf1b42e91c46f58b279fceb11a328a88e14f20a9749148a4a5932af4884a19f57dc89b0135b3b8acd2dc880265aa46dfb9887ab6212a59172bd SHA512 1d1997b17750f371e60cc6bf9693a8e4316deadd63247700f6ebd1bf02340f2e0524766a6be846d0f6349416b8551609da63fbf60ecd62766cf0d9b4f0c886d3
|
@ -1,39 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 )
|
||||
|
||||
inherit python-single-r1
|
||||
|
||||
DESCRIPTION="A script that converts a CHM file into a single PDF file"
|
||||
HOMEPAGE="https://code.google.com/p/chm2pdf/"
|
||||
SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 x86"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/pychm[${PYTHON_USEDEP}]
|
||||
app-text/htmldoc
|
||||
>=dev-libs/chmlib-0.40-r1[examples]
|
||||
${PYTHON_DEPS}"
|
||||
|
||||
REQUIRED_USE=${PYTHON_REQUIRED_USE}
|
||||
|
||||
PATCHES=( "${FILESDIR}/tempdir.patch" )
|
||||
|
||||
pkg_setup() {
|
||||
python-single-r1_pkg_setup
|
||||
}
|
||||
|
||||
src_prepare(){
|
||||
python_fix_shebang .
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
python_doscript ${PN} || die "failed to create executable"
|
||||
}
|
@ -1,71 +0,0 @@
|
||||
--- chm2pdf-0.9.1.orig/chm2pdf 2008-07-09 12:42:26.000000000 +0200
|
||||
+++ chm2pdf-0.9.1/chm2pdf 2009-02-25 20:58:53.000000000 +0100
|
||||
@@ -27,6 +27,8 @@
|
||||
import os, os.path
|
||||
import re, glob
|
||||
import getopt
|
||||
+import tempfile
|
||||
+import shutil
|
||||
# from BeautifulSoup import BeautifulSoup
|
||||
|
||||
global version
|
||||
@@ -39,8 +41,8 @@
|
||||
global filename #the input filename
|
||||
|
||||
version = '0.9.1'
|
||||
-CHM2PDF_TEMP_WORK_DIR='/tmp/chm2pdf/work'
|
||||
-CHM2PDF_TEMP_ORIG_DIR='/tmp/chm2pdf/orig'
|
||||
+CHM2PDF_TEMP_WORK_DIR=tempfile.mkdtemp()
|
||||
+CHM2PDF_TEMP_ORIG_DIR=tempfile.mkdtemp()
|
||||
|
||||
|
||||
|
||||
@@ -299,16 +301,6 @@
|
||||
# ########################### File extraction and correction: START ############################
|
||||
#
|
||||
if options['dontextract'] == '':
|
||||
-
|
||||
- try:
|
||||
- os.mkdir(CHM2PDF_TEMP_WORK_DIR)
|
||||
- except OSError: # The directory already exists.
|
||||
- pass
|
||||
-
|
||||
- try:
|
||||
- os.mkdir(CHM2PDF_TEMP_ORIG_DIR)
|
||||
- except OSError: # The directory already exists.
|
||||
- pass
|
||||
|
||||
try:
|
||||
os.mkdir(CHM2PDF_ORIG_DIR)
|
||||
@@ -620,7 +612,7 @@
|
||||
print '\t--continuous\n\t\tSpecifies that the HTML sources are unstructured (plain web pages).\n\t\tNo page breaks are inserted between each file or URL in the output.'
|
||||
print '\t--cookies \'name="value with space"; name=value\'\n\t\t'
|
||||
print '\t--datadir directory\n\t\tSpecifies the location of the HTMLDOC data files, usually /usr/share/htmldoc or C:\Program Files\HTMLDOC '
|
||||
- print "\t--dontextract \n\t\tIf given, %s will not extract the HTML files from the given CHM file, but will use previously extracted copies from the temporary directory " %name + '(i.e. ' + CHM2PDF_TEMP_ORIG_DIR + ' and ' + CHM2PDF_TEMP_WORK_DIR + '). Usually you will use this option after you have used the \'--extract-only\' option to extract the files in order to correct them manually (in ' + CHM2PDF_TEMP_WORK_DIR + '). After the correction, a call with \'--dontextract\' will not overwrite your changes, but will use the corrected files instead.'
|
||||
+# print "\t--dontextract \n\t\tIf given, %s will not extract the HTML files from the given CHM file, but will use previously extracted copies from the temporary directory " %name + '(i.e. ' + CHM2PDF_TEMP_ORIG_DIR + ' and ' + CHM2PDF_TEMP_WORK_DIR + '). Usually you will use this option after you have used the \'--extract-only\' option to extract the files in order to correct them manually (in ' + CHM2PDF_TEMP_WORK_DIR + '). After the correction, a call with \'--dontextract\' will not overwrite your changes, but will use the corrected files instead.'
|
||||
print '\t--duplex\n\t\tSpecifies that the output should be formatted for double-sided printing.'
|
||||
print '\t--effectduration {0.1..10.0}\n\t\tSpecifies the duration in seconds of PDF page transition effects.'
|
||||
print '\t--embedfonts\n\t\tSpecifies that fonts should be embedded in PDF output.'
|
||||
@@ -1084,13 +1076,6 @@
|
||||
print 'CHM file "' + filename + '" not found!'
|
||||
return
|
||||
|
||||
- #remove temporary files
|
||||
- if options['dontextract'] == '':
|
||||
- if options['verbose']=='--verbose' and options['verbositylevel']=='high':
|
||||
- print 'Removing any previous temporary files...'
|
||||
- os.system('rm -r '+CHM2PDF_ORIG_DIR+'/*')
|
||||
- os.system('rm -r '+CHM2PDF_WORK_DIR+'/*')
|
||||
-
|
||||
cfile = chm.CHMFile()
|
||||
cfile.LoadCHM(filename)
|
||||
|
||||
@@ -1105,6 +1090,8 @@
|
||||
os.system('extract_chmLib ' + filename + ' ' + CHM2PDF_ORIG_DIR + '&> /dev/null')
|
||||
|
||||
convert_to_pdf(cfile, filename, outputfilename, options)
|
||||
+ shutil.rmtree(CHM2PDF_TEMP_WORK_DIR)
|
||||
+ shutil.rmtree(CHM2PDF_TEMP_ORIG_DIR)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<remote-id type="google-code">chm2pdf</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1 +0,0 @@
|
||||
DIST clara-20031214.tar.gz 451539 BLAKE2B beed8b3a199825a8d8699c10b6a08c4d71fbafa3f3d2ebbbff6b13eafa35b4f38bacca35209039a93f0d31a993987a8773371b43440a1a0fbd61c40c455ec1f9 SHA512 260d710132a3903d71b6c4c0885ac1709b60d520861e3dcd5e4b75a3bf5627549c94423670be08245e7a9db6a870a93a9526c8d318fadaddcce00cbf02985f49
|
@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="An OCR (Optical Character Recognition) program"
|
||||
SRC_URI="mirror://gentoo/${P}.tar.gz"
|
||||
HOMEPAGE="http://www.claraocr.org/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="~amd64 ~ppc ~x86 ~ppc-macos ~sparc-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="x11-libs/libX11"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# The test provided by clara doesn't seem to make any sense. It just
|
||||
# calls the binary with an unsupported option, which results in an
|
||||
# error.
|
||||
RESTRICT="test"
|
||||
|
||||
src_prepare() {
|
||||
sed -i -re "s/(C|LD)FLAGS =/\1FLAGS +=/" Makefile
|
||||
epatch "${FILESDIR}/${PN}_open_mode.patch"
|
||||
epatch "${FILESDIR}/${P}-debian-vararg.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" || die
|
||||
emake doc || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN} selthresh
|
||||
doman doc/${PN}*.1 selthresh.1
|
||||
|
||||
dodoc ANNOUNCE CHANGELOG doc/FAQ
|
||||
insinto /usr/share/doc/${P}
|
||||
doins imre.pbm
|
||||
|
||||
dohtml doc/*.html
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "Please note that Clara OCR has to be trained to recognize text,"
|
||||
elog "without a training session it simply won't work. Have a look at"
|
||||
elog "the docs in /usr/share/doc/${P}/html/ to get more "
|
||||
elog "info about the training procedure."
|
||||
elog
|
||||
}
|
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=0
|
||||
|
||||
inherit eutils toolchain-funcs
|
||||
|
||||
DESCRIPTION="An OCR (Optical Character Recognition) program"
|
||||
SRC_URI="mirror://gentoo/clara-20031214.tar.gz"
|
||||
HOMEPAGE="http://www.claraocr.org/"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="GPL-2"
|
||||
KEYWORDS="amd64 ppc x86 ~ppc-macos ~sparc-solaris"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="x11-libs/libX11"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
# The test provided by clara doesn't seem to make any sense. It just
|
||||
# calls the binary with an unsupported option, which results in an
|
||||
# error.
|
||||
RESTRICT="test"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
cd "${S}"
|
||||
sed -i -re "s/(C|LD)FLAGS =/\1FLAGS +=/" Makefile
|
||||
epatch "${FILESDIR}/clara_open_mode.patch"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake CC="$(tc-getCC)" || die
|
||||
emake doc || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin clara selthresh
|
||||
doman doc/clara*.1 selthresh.1
|
||||
|
||||
dodoc ANNOUNCE CHANGELOG doc/FAQ
|
||||
insinto /usr/share/doc/${P}
|
||||
doins imre.pbm
|
||||
|
||||
dohtml doc/*.html
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog
|
||||
elog "Please note that Clara OCR has to be trained to recognize text,"
|
||||
elog "without a training session it simply won't work. Have a look at"
|
||||
elog "the docs in /usr/share/doc/${P}/html/ to get more "
|
||||
elog "info about the training procedure."
|
||||
elog
|
||||
}
|
@ -1,90 +0,0 @@
|
||||
--- clara-20031214.orig/clara.c
|
||||
+++ clara-20031214/clara.c
|
||||
@@ -751,11 +751,12 @@
|
||||
s[128] = 0;
|
||||
logmsg(s);
|
||||
|
||||
- if (!trace)
|
||||
- return;
|
||||
- va_start(args,m);
|
||||
- vfprintf(stderr,m,args);
|
||||
- fprintf(stderr,"\n");
|
||||
+ if (trace) {
|
||||
+ vfprintf(stderr,m,args);
|
||||
+ fprintf(stderr,"\n");
|
||||
+ }
|
||||
+
|
||||
+ va_end(args);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -775,10 +776,12 @@
|
||||
logmsg(s);
|
||||
|
||||
/* send to stderr if requested */
|
||||
- if (!debug)
|
||||
- return;
|
||||
- vfprintf(stderr,m,args);
|
||||
- fprintf(stderr,"\n");
|
||||
+ if (debug) {
|
||||
+ vfprintf(stderr,m,args);
|
||||
+ fprintf(stderr,"\n");
|
||||
+ }
|
||||
+
|
||||
+ va_end(args);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -797,9 +800,10 @@
|
||||
s[128] = 0;
|
||||
logmsg(s);
|
||||
|
||||
- va_start(args,m);
|
||||
vfprintf(stderr,m,args);
|
||||
fprintf(stderr,"\n");
|
||||
+
|
||||
+ va_end(args);
|
||||
}
|
||||
|
||||
/* (devel)
|
||||
--- clara-20031214.orig/event.c
|
||||
+++ clara-20031214/event.c
|
||||
@@ -638,6 +638,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
+ va_end(args);
|
||||
+
|
||||
/*
|
||||
printf("request (priority %d, mclip=%d, redraw=%d) to draw the message \"%s\"\n",f,mclip,redraw_stline,s);
|
||||
*/
|
||||
--- clara-20031214.orig/html.c
|
||||
+++ clara-20031214/html.c
|
||||
@@ -1548,11 +1548,12 @@
|
||||
va_list args;
|
||||
int n=0,f;
|
||||
|
||||
- va_start(args, fmt);
|
||||
for (f=0; f==0; ) {
|
||||
|
||||
/* try to write */
|
||||
+ va_start(args, fmt);
|
||||
n = vsnprintf(*t+*top+1,*sz-*top-1,fmt,args);
|
||||
+ va_end(args);
|
||||
|
||||
/*
|
||||
Some implementations of vsnprintf return -1 when
|
||||
@@ -1589,11 +1590,12 @@
|
||||
va_list args;
|
||||
int n=0,f;
|
||||
|
||||
- va_start(args, fmt);
|
||||
for (f=0; f==0; ) {
|
||||
|
||||
/* try to write */
|
||||
+ va_start(args, fmt);
|
||||
n = vsnprintf(text+topt+1,textsz-topt-1,fmt,args);
|
||||
+ va_end(args);
|
||||
|
||||
/*
|
||||
Some implementations of vsnprintf return -1 when
|
@ -1,20 +0,0 @@
|
||||
--- pgmblock.c 2002-04-29 14:26:13.000000000 +0000
|
||||
+++ pgmblock.c 2009-03-05 02:51:43.000000000 +0000
|
||||
@@ -161,7 +161,7 @@
|
||||
|
||||
printf("%d rare pixels (%1.4f)\n",t,((float)t)/(w*h));
|
||||
|
||||
- F = open("map",O_WRONLY|O_CREAT);
|
||||
+ F = open("map",O_WRONLY|O_CREAT, 0644);
|
||||
write(F,m,h*bpl);
|
||||
write(F,map,256);
|
||||
close(F);
|
||||
@@ -197,7 +197,7 @@
|
||||
{
|
||||
int i,j,F;
|
||||
|
||||
- F = open("map",O_RDONLY|O_CREAT);
|
||||
+ F = open("map",O_RDONLY|O_CREAT, 0644);
|
||||
read(F,m,h*bpl);
|
||||
read(F,map,256);
|
||||
close(F);
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
</pkgmetadata>
|
@ -1,63 +0,0 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=2
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
||||
|
||||
MY_P="${P}-MIT"
|
||||
DESCRIPTION="C/Migemo -- Migemo library implementation in C"
|
||||
HOMEPAGE="http://www.kaoriya.net/#CMIGEMO"
|
||||
SRC_URI="http://www.kaoriya.net/dist/var/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="alpha ~amd64 ~ppc x86"
|
||||
IUSE="unicode vim-syntax"
|
||||
|
||||
DEPEND="dev-lang/perl
|
||||
>=app-dicts/migemo-dict-200812[unicode=]
|
||||
app-i18n/qkc"
|
||||
RDEPEND=">=app-dicts/migemo-dict-200812[unicode=]"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-1.2-migemo-dict.diff"
|
||||
touch dict/SKK-JISYO.L
|
||||
if use unicode ; then
|
||||
sed -i -e "/gcc:/s/euc-jp/utf-8/" dict/dict.mak || die
|
||||
fi
|
||||
|
||||
# Bug #246953
|
||||
sed -i -e "s:-Wl,-rpath[^ ]*::" compile/Make_gcc.mak || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
append-flags -fPIC
|
||||
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" gcc || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# parallel make install borks
|
||||
emake -j1 \
|
||||
prefix="${D}/usr" \
|
||||
libdir="${D}/usr/$(get_libdir)" \
|
||||
gcc-install || die
|
||||
|
||||
local encoding
|
||||
if use unicode ; then
|
||||
encoding="utf-8"
|
||||
else
|
||||
encoding="euc-jp"
|
||||
fi
|
||||
|
||||
mv "${D}/usr/share/migemo/${encoding}/"*.dat "${D}/usr/share/migemo/"
|
||||
rm -rf "${D}/usr/share/migemo/"{cp932,euc-jp,utf-8}
|
||||
|
||||
if use vim-syntax ; then
|
||||
insinto /usr/share/vim/vimfiles/plugin
|
||||
doins tools/migemo.vim
|
||||
fi
|
||||
|
||||
dodoc doc/{README_j,TODO_j,vimigemo}.txt
|
||||
}
|
@ -1,76 +0,0 @@
|
||||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=2
|
||||
inherit eutils flag-o-matic multilib toolchain-funcs
|
||||
|
||||
MY_P="${P}-MIT"
|
||||
DESCRIPTION="C/Migemo -- Migemo library implementation in C"
|
||||
HOMEPAGE="http://www.kaoriya.net/#CMIGEMO"
|
||||
SRC_URI="http://www.kaoriya.net/dist/var/${MY_P}.tar.bz2"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha amd64 ~ppc x86"
|
||||
IUSE="unicode vim-syntax"
|
||||
|
||||
DEPEND=">=app-dicts/migemo-dict-200812[unicode=]
|
||||
dev-lang/perl
|
||||
|| (
|
||||
net-misc/curl
|
||||
net-misc/wget
|
||||
www-client/fetch
|
||||
)
|
||||
app-i18n/nkf"
|
||||
RDEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
# Bug #246953
|
||||
epatch "${FILESDIR}/${P}-gentoo.patch" \
|
||||
"${FILESDIR}"/${P}-ldflags.patch
|
||||
|
||||
touch dict/SKK-JISYO.L
|
||||
if use unicode ; then
|
||||
sed -i -e "/gcc:/s/euc-jp/utf-8/" dict/dict.mak || die
|
||||
fi
|
||||
|
||||
# Bug #255813
|
||||
sed -i -e "/^docdir/s:/doc/migemo:/share/doc/${PF}:" compile/config.mk.in || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
append-flags -fPIC
|
||||
# parallel make b0rked
|
||||
emake -j1 \
|
||||
CC="$(tc-getCC)" \
|
||||
CFLAGS="${CFLAGS}" \
|
||||
LDFLAGS="${LDFLAGS}" \
|
||||
gcc-all || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# parallel make b0rked
|
||||
emake -j1 \
|
||||
prefix="${D}/usr" \
|
||||
libdir="${D}/usr/$(get_libdir)" \
|
||||
gcc-install || die
|
||||
|
||||
local encoding
|
||||
if use unicode ; then
|
||||
encoding="utf-8"
|
||||
else
|
||||
encoding="euc-jp"
|
||||
fi
|
||||
|
||||
mv "${D}/usr/share/migemo/${encoding}/"*.dat "${D}/usr/share/migemo/"
|
||||
rm -rf "${D}/usr/share/migemo/"{cp932,euc-jp,utf-8}
|
||||
|
||||
if use vim-syntax ; then
|
||||
insinto /usr/share/vim/vimfiles/plugin
|
||||
doins tools/migemo.vim
|
||||
fi
|
||||
|
||||
dodoc doc/{README_j,TODO_j,vimigemo}.txt
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue