Import /home/bacon/Pkgsrc/pkgsrc-2/wip/fbsd2pkg

fbsd2pkg-0.1 as wip/fbsd2pkg.

The fbsd2pkg command converts a FreeBSD port framework to a pkgsrc package.
Most common constructs are converted, but in most cases, manual editing is
required to reach a working package.

Fbsd2pkg is an alternative to port2pkg that tries to do more automatic
conversion as well as preserve all unconverted FreeBSD port syntax as
comments in the pkgsrc Makefile.

It is written in Bourne shell and Awk to avoid the need for any large
dependencies.
This commit is contained in:
Jason Bacon 2015-07-07 20:51:12 +00:00 committed by Thomas Klausner
parent 4ceafdd9de
commit f98f715ce3
4 changed files with 43 additions and 0 deletions

3
fbsd2pkg/DESCR Normal file
View file

@ -0,0 +1,3 @@
The fbsd2pkg command converts a FreeBSD port framework to a pkgsrc package.
Most common constructs are converted, but in most cases, manual editing is
required to reach a working package.

32
fbsd2pkg/Makefile Normal file
View file

@ -0,0 +1,32 @@
# $NetBSD: Makefile,v 1.1 2015/07/07 20:51:12 outpaddling Exp $
DISTNAME= fbsd2pkg-0.1
CATEGORIES= pkgtools
MASTER_SITES= http://acadix.biz/Ports/distfiles/
EXTRACT_SUFX= .tar.xz
MAINTAINER= jwbacon@tds.net
HOMEPAGE= http://acadix.biz/Ports/distfiles/
COMMENT= Convert a FreeBSD port framework to a pkgsrc package
LICENSE= 2-clause-bsd
USE_LANGUAGES= # none
NO_BUILD= yes
SUBST_CLASSES+= prefix
SUBST_STAGE.prefix= post-patch
SUBST_FILES.prefix= ${WRKSRC}/fbsd2pkg
SUBST_SED.prefix= \
's|fbsd2pkg.awk|${PREFIX}/libexec/fbsd2pkg/fbsd2pkg.awk|g'
DEPENDS+= createbuildlink:../../pkgtools/createbuildlink \
pkglint:../../pkgtools/pkglint
do-install:
${MKDIR} ${DESTDIR}${PREFIX}/bin ${DESTDIR}${PREFIX}/libexec/fbsd2pkg
${INSTALL_SCRIPT} ${WRKSRC}/fbsd2pkg ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/fbsd2pkg.awk \
${DESTDIR}${PREFIX}/libexec/fbsd2pkg
.include "../../mk/bsd.pkg.mk"

3
fbsd2pkg/PLIST Normal file
View file

@ -0,0 +1,3 @@
@comment $NetBSD: PLIST,v 1.1 2015/07/07 20:51:12 outpaddling Exp $
bin/fbsd2pkg
libexec/fbsd2pkg/fbsd2pkg.awk

5
fbsd2pkg/distinfo Normal file
View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2015/07/07 20:51:12 outpaddling Exp $
SHA1 (fbsd2pkg-0.1.tar.xz) = d4066d720f250144fdad25cf7ced0f008129a5f1
RMD160 (fbsd2pkg-0.1.tar.xz) = 40fed9656185e5ba0ea5b20d67481e4e47722f20
Size (fbsd2pkg-0.1.tar.xz) = 3472 bytes