On Mon, Mar 14, 2011 at 09:31:08PM +0100, Landry Breuil wrote:
> On Mon, Mar 14, 2011 at 06:46:24PM +0100, Joachim Schipper wrote:
> > This is the client for tarsnap.com (online client-side-encrypted backups
> > with a pay-for-what-you-use pricing model).
> > 
> > This is non-free commercial software, but may be distributed in source
> > or binary form as long as no modifications are made (according to
> > http://www.tarsnap.com/legal-why.html#UNMODIFIEDCLIENT, this is to
> > prevent people from optimizing the client at the expense of the server),
> > even on the OpenBSD CD (the author, Colin Percival of FreeBSD fame,
> > specifically agrees that this is fine).
> > 
> > I've been using this for a couple of months without issues (on amd64).
> 
> Ports read good, but it'd be simpler if you just set DISTNAME to
> tarsnap-autoconf-${V} and PKGNAME to tarsnap-${V}. No need to mess with
> WRK vars then. Also, it lacks the rcs Ids at the top of the Makefile.
> 
> Other than that, ok for me. Anyone else willing to import it ?

Thanks for the help! I fixed it and added EXTRACT_SUFX=.tgz.

(Makefile reproduced below for convenience; the other stuff in the
attached tarball is unchanged.)

                Joachim

# $OpenBSD$

COMMENT=                online encrypted backup service (client)
V=                      1.0.29
DISTNAME=               tarsnap-autoconf-${V}
PKGNAME=                tarsnap-${V}
CATEGORIES=             sysutils
HOMEPAGE=               http://www.tarsnap.com/
MAINTAINER=             Joachim Schipper <joac...@joachimschipper.nl>

# "Redistribution and use in source and binary forms, without modification, is
# permitted for the sole purpose of using the "tarsnap" backup service provided
# by Colin Percival." Also contains quite a bit of BSD/public domain stuff and
# some (copyrighted) manuals.
PERMIT_PACKAGE_CDROM=   Yes
PERMIT_PACKAGE_FTP=     Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP=   Yes

MASTER_SITES=           http://www.tarsnap.com/download/
EXTRACT_SUFX=           .tgz

WANTLIB=                c crypto z lzma bz2>=10
LIB_DEPENDS=            archivers/xz \
                        archivers/bzip2

CONFIGURE_STYLE=        gnu

post-install:
        ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tarsnap
        mv ${WRKINST}${SYSCONFDIR}/tarsnap.conf.sample 
${PREFIX}/share/examples/tarsnap/tarsnap.conf

.include <bsd.port.mk>

Reply via email to