Bug 64264 - New port: mail/libsrs - A SRS library and client
Summary: New port: mail/libsrs - A SRS library and client
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Volker Stolz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-14 20:10 UTC by Daniel Roethlisberger
Modified: 2010-06-11 00:15 UTC (History)
1 user (show)

See Also:


Attachments
libsrs.shar (4.29 KB, text/plain)
2004-03-14 20:10 UTC, Daniel Roethlisberger
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Roethlisberger 2004-03-14 20:10:16 UTC
Sender Rewriting Scheme (SRS) library and utility in C.
SRS is a scheme under development for email envelope sender
rewriting. In an SPF-compliant world, forwarded mail must be
rewritten to carry a local return path.
Read all about SRS at http://spf.pobox.com/srs.html

This is the second of three new SPF-related ports.
Comment 1 Daniel Roethlisberger 2004-05-21 14:53:54 UTC
As this has not been commited yet, here's an updated full shar of this
port. Only change: updated pkg-descr with author's new email address.

--- libsrs.shar begins here ---
# 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:
#
#	libsrs
#	libsrs/Makefile
#	libsrs/pkg-plist
#	libsrs/pkg-descr
#	libsrs/distinfo
#	libsrs/pkg-message
#
echo c - libsrs
mkdir -p libsrs > /dev/null 2>&1
echo x - libsrs/Makefile
sed 's/^X//' >libsrs/Makefile << 'END-of-libsrs/Makefile'
X# New ports collection makefile for:	libsrs
X# Date created:		28 February 2004
X# Whom:			Daniel Roethlisberger <daniel@roe.ch>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libsrs
XPORTVERSION=	0.3.b
XCATEGORIES=	mail
XMASTER_SITES=	http://www.libsrs.org/files/
XDISTNAME=	${PORTNAME}.${PORTVERSION}eta
X
XMAINTAINER=	daniel@roe.ch
XCOMMENT=	Sender Rewriting Scheme (SRS) library and client
X
XUSE_BZIP2=	yes
XWRKSRC=		${WRKDIR}/${PORTNAME}.3
XUSE_GMAKE=	yes
XUSE_REINPLACE=	yes
XUSE_OPENSSL=	yes
XINSTALLS_SHLIB=	yes
XLIBSRS_REV=	1
XPLIST_SUB=	PORTNAME=${PORTNAME} LIBSRS_REV=${LIBSRS_REV}
XMAKE_ENV=	CPPFLAGS="${CPPFLAGS} -I${OPENSSLINC}" \
X		LDFLAGS="${LDFLAGS} -L${OPENSSLLIB} -L${WRKSRC}"
X
X# WITH_SRS_DEBUG=yes	enable debugging
X.if defined(WITH_SRS_DEBUG)
XSRS_CFLAGS=	-ggdb3 -DDEBUG
X.endif
X
X# This is all a bit messy, but given the inconvenient original Makefile,
X# this seems to be the best way to make this port work in this version.
X# The author of libsrs is working on autotools support, so this ugliness
X# should have an end soon.
Xpost-patch:
X	@${REINPLACE_CMD} \
X	  -e 's/^CFLAGS:=.*/CFLAGS+=-Wall -D_USE_BSD_SOURCE ${SRS_CFLAGS}/' \
X	  -e 's/^CPPFLAGS:=/#CPPFLAGS:=/' \
X	  -e 's/^LDFLAGS:=/#LDFLAGS:=/' \
X	  -e 's/cd tools; make static; make ins.all/cd tools; make shared/g' \
X	  -e 's/make/gmake/g' \
X	  -e 's/libsrs\.so\.1\.0\.1/libsrs.so.${LIBSRS_REV}/g' \
X	  -e 's/-soname,libsrs\.so\.1/-soname,libsrs.so.${LIBSRS_REV}/g' \
X	  ${WRKSRC}/Makefile
X	@${REINPLACE_CMD} \
X	  -e 's/^CFLAGS:=/#CFLAGS:=/' \
X	  -e 's/^CPPFLAGS:=/#CPPFLAGS:=/' \
X	  -e 's/^LDFLAGS:=/#LDFLAGS:=/' \
X	  -e 's/make/gmake/g' \
X	  -e 's/mv static srs/mv static srs-${PORTNAME}/g' \
X	  -e 's/mv shared srs/mv shared srs-${PORTNAME}/g' \
X	  -e 's/libsrs\.so\.1\.0\.1/libsrs.so.${LIBSRS_REV} -lcrypto/g' \
X	  ${WRKSRC}/tools/Makefile
X	@${REINPLACE_CMD} \
X	  -e 's/compile with -DDEBUG/build with WITH_SRS_DEBUG=yes/g' \
X	  ${WRKSRC}/tools/srs.c
X
Xdo-install:
X	${INSTALL_DATA} ${WRKSRC}/srs.h ${PREFIX}/include
X	${INSTALL_DATA} ${WRKSRC}/libsrs.a ${PREFIX}/lib
X	${INSTALL_DATA} ${WRKSRC}/libsrs.so.${LIBSRS_REV} ${PREFIX}/lib
X	(cd ${PREFIX}/lib ; ${LN} -sf libsrs.so.${LIBSRS_REV} libsrs.so)
X	${INSTALL_PROGRAM} ${WRKSRC}/tools/srs-${PORTNAME} ${PREFIX}/bin
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-libsrs/Makefile
echo x - libsrs/pkg-plist
sed 's/^X//' >libsrs/pkg-plist << 'END-of-libsrs/pkg-plist'
Xinclude/srs.h
Xlib/libsrs.a
Xlib/libsrs.so
Xlib/libsrs.so.%%LIBSRS_REV%%
Xbin/srs-%%PORTNAME%%
END-of-libsrs/pkg-plist
echo x - libsrs/pkg-descr
sed 's/^X//' >libsrs/pkg-descr << 'END-of-libsrs/pkg-descr'
XSender Rewriting Scheme (SRS) library and utility in C.
XSRS is a scheme under development for email envelope sender
Xrewriting. In an SPF-compliant world, forwarded mail must be
Xrewritten to carry a local return path.
XRead all about SRS at http://spf.pobox.com/srs.html
X
XAuthor: James Couzens <jcouzens@6o4.ca>
XWWW: http://www.libsrs.org/
END-of-libsrs/pkg-descr
echo x - libsrs/distinfo
sed 's/^X//' >libsrs/distinfo << 'END-of-libsrs/distinfo'
XMD5 (libsrs.0.3.beta.tar.bz2) = 5502b03452d387cb4ba9e8e9fb4facd4
XSIZE (libsrs.0.3.beta.tar.bz2) = 19014
END-of-libsrs/distinfo
echo x - libsrs/pkg-message
sed 's/^X//' >libsrs/pkg-message << 'END-of-libsrs/pkg-message'
X-----------------------------------------------------------------------
XNote: This port installs the SRS userspace tools with a filename suffix
X      of -libsrs in order to avoid conflicts with other SRS ports
X      providing tools of the same name.
X      Please create convenience symlinks manually, if desired.
X-----------------------------------------------------------------------
END-of-libsrs/pkg-message
exit
--- libsrs.shar ends here ---
Comment 2 Volker Stolz freebsd_committer freebsd_triage 2004-05-22 18:17:49 UTC
State Changed
From-To: open->closed

Port added, thanks!
Comment 3 Philip M. Gollucci freebsd_committer freebsd_triage 2010-06-11 00:15:24 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vs

to committer