diff options
Diffstat (limited to 'sys-freebsd/ubin-wrappers')
-rw-r--r-- | sys-freebsd/ubin-wrappers/Manifest | 4 | ||||
-rw-r--r-- | sys-freebsd/ubin-wrappers/metadata.xml | 8 | ||||
-rw-r--r-- | sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild | 36 |
3 files changed, 48 insertions, 0 deletions
diff --git a/sys-freebsd/ubin-wrappers/Manifest b/sys-freebsd/ubin-wrappers/Manifest new file mode 100644 index 000000000000..56d8b55df991 --- /dev/null +++ b/sys-freebsd/ubin-wrappers/Manifest @@ -0,0 +1,4 @@ +EBUILD ubin-wrappers-0.ebuild 781 SHA256 3194f775c3b2b185e7009e944dac21f2dfd1e4cf8bfd10f31fdb8b40d4d66f48 SHA512 a438b6e683273b7f832e2e2cf41ad644cf4a5006ea493886e46b3008a3e158372c179d8836b54f1d258a5562157b774098e5a4758f107f48af1c97b597d7411f WHIRLPOOL bb5fed192e10fcaf406f093405de1555f84e5f39e6c4e6b9261707c161c91542287d75dc18c2b6c7e8c0fa302c95e09e42bd8493077d41f8644a23049dda490d +MISC ChangeLog 2215 SHA256 8292b9417f30596a6fc23a35bac0d6fee646b1cd0e476b53180d5e2c06ab1bd0 SHA512 667b3292dce8f1ac2cb9854656e8f96817f017b9c81e4523b44c2504166337b19a4dd6847cedc018494a15781858bee583b83536077fb9ad335f379f891d98a0 WHIRLPOOL 37a9e920d1f6500acc6f7494963197b68ae2d5b2cd9313c1c55d73eb9feda4d7d329974b972f82a4d3a0266891095f8f8f28d624db6fee4624a01af6228ce2fd +MISC ChangeLog-2015 740 SHA256 7b6bc7e69e64037e55a4142db3ad2af4d22de27be7103cd359a5f841435358f3 SHA512 b484591639d7bced237e5e30ba665c26ebbcd091a03da0aa2baa1190b0156d5f634908bb9b4ddb52faffb9cfe07a32d73ef174ef2b964853634ebc03c384fb5e WHIRLPOOL 91c24cc24bbca8a0d7fdea5239541756d2c9c93a07265dfe3c14ed6d01a920b1b1240e16b072fafd5f33cb18cb0639c81037650657af6a1a703d57b34dd1bec8 +MISC metadata.xml 242 SHA256 4fee4ee5d638742311a933b0a4379778e28dbb80bed349a39182d016c4c7ddad SHA512 b854e91958adbf3787c2f322ff793e9a7e1881eed7018e83935a99a6a68db80996eb87786d5162c8d66460801f601bc477071baa4010152abff68668e36047d3 WHIRLPOOL 3f964504553fe43c3fde93a0465fab6839207539a9868c4247a9602c6d8cd042dcc7859130f57d1558eeb907353824115ed116c22ca936eb7479f66b1023f10a diff --git a/sys-freebsd/ubin-wrappers/metadata.xml b/sys-freebsd/ubin-wrappers/metadata.xml new file mode 100644 index 000000000000..3aa6e83a4933 --- /dev/null +++ b/sys-freebsd/ubin-wrappers/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ryao@gentoo.org</email> + <name>Richard Yao</name> + </maintainer> +</pkgmetadata> diff --git a/sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild b/sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild new file mode 100644 index 000000000000..ad8aabbca3e8 --- /dev/null +++ b/sys-freebsd/ubin-wrappers/ubin-wrappers-0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="/usr/bin wrapper scripts for FreeBSD script compatibility" +HOMEPAGE="https://www.gentoo.org" +SRC_URI="" + +LICENSE="public-domain" +SLOT="0" +KEYWORDS="~amd64-fbsd ~sparc-fbsd ~x86-fbsd" +IUSE="userland_BSD userland_GNU" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +dowrap() { + local x + for x do + [[ -e ${x} ]] || die "${x} does not exist" + newbin - "$(basename "${x}")" <<-EOF + #!/bin/sh + exec ${x} \${1:+"\$@"} + EOF + done +} + +src_install() { + dowrap \ + "${EPREFIX}"/bin/{bunzip2,bzcat,cpio,egrep,fgrep,grep,gunzip,gzip,zcat} + use userland_BSD && dowrap "${EPREFIX}"/bin/sort + use userland_GNU && dowrap "${EPREFIX}"/bin/{fuser,sed,uncompress} +} |