ports/146479: New port: net-p2p/mktorrent
Damian Gerow
dgerow at afflictions.org
Mon May 10 23:50:02 UTC 2010
>Number: 146479
>Category: ports
>Synopsis: New port: net-p2p/mktorrent
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon May 10 23:50:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Damian Gerow
>Release: 8.0-STABLE
>Organization:
>Environment:
FreeBSD plebeian.afflictions.org 8.0-STABLE FreeBSD 8.0-STABLE #6 r207614: Tue May 4 13:49:19 EDT 2010 root at plebeian.afflictions.org:/usr/obj/usr/src/sys/PLEBEIAN amd64
>Description:
Add new port net-p2p/mktorrent, a simple command-line utility to create BitTorrent metainfo files.
>How-To-Repeat:
n/a
>Fix:
See attached shar.
Patch attached with submission follows:
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# mktorrent
# mktorrent/distinfo
# mktorrent/Makefile
# mktorrent/pkg-descr
#
echo c - mktorrent
mkdir -p mktorrent > /dev/null 2>&1
echo x - mktorrent/distinfo
sed 's/^X//' >mktorrent/distinfo << '7ba4f2a7792be3c7aad2e78f84e6c881'
XMD5 (mktorrent-1.0.tar.gz) = 0da00209da96a0dc39efbb6eb5b4d8ff
XSHA256 (mktorrent-1.0.tar.gz) = 6f8e562af6366e0d9bde76e434f740b55722c6c3c555860dbe80083f9d1d119f
XSIZE (mktorrent-1.0.tar.gz) = 23089
7ba4f2a7792be3c7aad2e78f84e6c881
echo x - mktorrent/Makefile
sed 's/^X//' >mktorrent/Makefile << '6f469e1adf8acbc4a3cdd62a5fd646ff'
X# New ports collection makefile for: mktorrent
X# Date created: 9 May 2010
X# Whom: dgerow
X#
X# $FreeBSD$
X#
X
XPORTNAME= mktorrent
XPORTVERSION= 1.0
XCATEGORIES= net-p2p
X#MASTER_SITES= SF/${PORTNAME}/mktorrent/mktorrent-${PORTVERSION}
XMASTER_SITES= SF
X
XMAINTAINER= dgerow at afflictions.org
XCOMMENT= A command-line utility for creating BitTorrent metainfo files
X
XMAKEFILE= BSDmakefile
X
XPLIST_FILES= bin/mktorrent
X
XOPTIONS= THREADS "Enable support for pthreads" on \
X OPENSSL "Use OpenSSL for hashing" on \
X LONGOPTS "Support the use of long options" on \
X LARGEFILE "Support large files" on \
X HASHCHECK "Verify file hashes" on
X
X.include <bsd.port.options.mk>
X
X.if defined(WITH_THREADS)
XMAKE_FLAGS+= USE_PTHREADS=1
X.endif
X
X.if defined(WITH_OPENSSL)
XMAKE_FLAGS+= USE_OPENSSL=1
XUSE_OPENSSL= yes
X.endif
X
X.if defined(WITH_LONGOPTS)
XMAKE_FLAGS+= USE_LONG_OPTIONS=1
X.endif
X
X.if defined(WITH_LARGEFILE)
XMAKE_FLAGS+= USE_LARGE_FILES=1
X.endif
X
X.if defined(WITHOUT_HASHCHECK)
XMAKE_FLAGS+= NO_HASH_CHECK=1
X.endif
X
Xpost-patch:
X @${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/BSDmakefile
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
X
X.include <bsd.port.mk>
6f469e1adf8acbc4a3cdd62a5fd646ff
echo x - mktorrent/pkg-descr
sed 's/^X//' >mktorrent/pkg-descr << '29a40b5b627f23e968b5ab9acc8cefd6'
Xmktorrent is a simple command-line utility to create BitTorrent
Xmetainfo files. It supports multiple trackers, private trackers,
Xcustom comments, and is multi-threaded to support multiple CPUs.
X
XWWW: http://mktorrent.sourceforge.net/
29a40b5b627f23e968b5ab9acc8cefd6
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list