Skip to content

Commit

Permalink
devel/bencodetools: Add new port
Browse files Browse the repository at this point in the history
bencode-tools is a collection of tools for manipulating bencoded data.

Bencode (pronounced like Bee-encode) is the encoding used by the
peer-to-peer file sharing system BitTorrent for storing and transmitting
loosely structured data.
  • Loading branch information
ehaupt committed Feb 20, 2023
1 parent b021237 commit 7457e5f
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -270,6 +270,7 @@
SUBDIR += bcunit
SUBDIR += bear
SUBDIR += benchmark
SUBDIR += bencodetools
SUBDIR += bennugd-core
SUBDIR += bennugd-modules
SUBDIR += bfg
Expand Down
36 changes: 36 additions & 0 deletions devel/bencodetools/Makefile
@@ -0,0 +1,36 @@
PORTNAME= bencodetools
PORTVERSION= g20221122
CATEGORIES= devel

MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Collection of tools for manipulating bencoded data
WWW= https://gitlab.com/heikkiorsila/bencodetools

LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= bash:shells/bash

USES= shebangfix
USE_GITLAB= yes
GL_ACCOUNT= heikkiorsila
GL_COMMIT= f08cb85806d5b188f3af04cd21393dd8eb51b287
USE_LDCONFIG= yes

SHEBANG_FILES= configure

HAS_CONFIGURE= yes
CONFIGURE_ARGS= --c-compiler=${CC} \
--package-prefix=${STAGEDIR} \
--prefix=${PREFIX} \
--without-python

PLIST_FILES= bin/bencat \
include/bencodetools/bencode.h \
lib/libbencodetools.so

post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bencat \
${STAGEDIR}${PREFIX}/lib/libbencodetools.so

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/bencodetools/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1676827805
SHA256 (heikkiorsila-bencodetools-f08cb85806d5b188f3af04cd21393dd8eb51b287_GL0.tar.gz) = 2fa2058d5a0edec3d9b665cbd580d479ded50a11add45258692e6804cbc2a400
SIZE (heikkiorsila-bencodetools-f08cb85806d5b188f3af04cd21393dd8eb51b287_GL0.tar.gz) = 38621
5 changes: 5 additions & 0 deletions devel/bencodetools/pkg-descr
@@ -0,0 +1,5 @@
bencode-tools is a collection of tools for manipulating bencoded data.

Bencode (pronounced like Bee-encode) is the encoding used by the
peer-to-peer file sharing system BitTorrent for storing and transmitting
loosely structured data.

0 comments on commit 7457e5f

Please sign in to comment.