Bug 169413 - ftp/yafc: Support USE_OPENSSL
Summary: ftp/yafc: Support USE_OPENSSL
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: Armin Pirkovitsch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 19:10 UTC by tkato432
Modified: 2012-07-19 18:47 UTC (History)
0 users

See Also:


Attachments
file.diff (2.55 KB, patch)
2012-06-25 19:10 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2012-06-25 19:10:11 UTC
- Add LICENSE
- Add MAKE_JOBS_SAFE
- Support USE_OPENSSL
- Support PORTEXAMPLES
- Add optional dependencies

New file:
files/patch-src__Makefile.in
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-06-25 19:11:25 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants his PRs (via the GNATS Auto Assign Tool)
Comment 2 Armin Pirkovitsch freebsd_committer freebsd_triage 2012-07-17 08:58:07 UTC
Responsible Changed
From-To: miwi->sperber

miwi asked me to take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-07-19 18:28:49 UTC
Author: sperber
Date: Thu Jul 19 17:28:40 2012
New Revision: 301168
URL: http://svn.freebsd.org/changeset/ports/301168

Log:
  - Add LICENSE
  - Add MAKE_JOBS_SAFE
  - Support USE_OPENSSL
  - Support PORTEXAMPLES
  - Add optional dependencies
  - PORTVERSION bumped
  - Add category ipv6
  
  PR:           ports/169413
  Submitted by: KATO Tsuguru <tkato432 _at_ yahoo.com>
  Approved by:  beat (mentor)

Added:
  head/ftp/yafc/files/
  head/ftp/yafc/files/patch-src__Makefile.in   (contents, props changed)
Modified:
  head/ftp/yafc/Makefile   (contents, props changed)

Modified: head/ftp/yafc/Makefile
==============================================================================
--- head/ftp/yafc/Makefile	Thu Jul 19 17:28:07 2012	(r301167)
+++ head/ftp/yafc/Makefile	Thu Jul 19 17:28:40 2012	(r301168)
@@ -7,38 +7,66 @@
 
 PORTNAME=	yafc
 PORTVERSION=	1.2.0
-CATEGORIES=	ftp
+PORTREVISION=	1
+CATEGORIES=	ftp ipv6
 MASTER_SITES=	https://github.com/downloads/sebastinas/yafc/
 
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Yet another ftp client. Similar to ftp(1)
 
+LICENSE=	GPLv2 # (or later)
+
+OPTIONS_DEFINE=	NLS SSH EXAMPLES
+OPTIONS_DEFAULT=NLS SSH
+
 USE_XZ=		yes
+USE_OPENSSL=	yes
+USE_GMAKE=	yes
 GNU_CONFIGURE=	yes
+CONFIGURE_ENV=	ac_cv_ipv6=yes
 CONFIGURE_ARGS=	--with-socks=no --with-socks5=no --with-krb4=no \
-		--with-krb5=no --disable-nls
+		--with-krb5=no --with-openssl=${OPENSSLBASE}
+MAKE_JOBS_SAFE=	yes
+
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
 
 FETCH_ARGS=	-Fpr
 
 MAN1=		yafc.1
 INFO=		yafc
+PORTEXAMPLES=	inputrc yafcrc
 PLIST_FILES=	bin/yafc \
 		etc/bash_completion.d/yafc
 PLIST_DIRSTRY=	etc/bash_completion.d
 
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+USE_GNOME+=	intltool
+USE_GETTEXT=	yes
+LDFLAGS+=	-lintl
+PLIST_FILES+=	share/locale/sv/LC_MESSAGES/yafc.mo
+.else
+CONFIGURE_ARGS+=	--disable-nls
+.endif
+
+.if ${PORT_OPTIONS:MSSH}
+LIB_DEPENDS+=	ssh:${PORTSDIR}/security/libssh
+.else
+CONFIGURE_ARGS+=	--without-ssh
+.endif
+
 .include <bsd.port.pre.mk>
 
-.if exists(${LOCALBASE}/lib/libreadline.so.6)
-LIB_DEPENDS+=	readline.6:${PORTSDIR}/devel/readline
+.if exists(${LOCALBASE}/lib/libreadline.so)
+LIB_DEPENDS+=	readline:${PORTSDIR}/devel/readline
 .endif
 
 post-install:
 .if ${PORT_OPTIONS:MEXAMPLES}
 	@${MKDIR} ${EXAMPLESDIR}
 	${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}
-PLIST_FILES+=	%%EXAMPLESDIR%%/inputrc \
-		%%EXAMPLESDIR%%/yafcrc
-PLIST_DIRS+=	%%EXAMPLESDIR%%
 .endif
 
 .include <bsd.port.post.mk>

Added: head/ftp/yafc/files/patch-src__Makefile.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/ftp/yafc/files/patch-src__Makefile.in	Thu Jul 19 17:28:40 2012	(r301168)
@@ -0,0 +1,14 @@
+--- src/Makefile.in.orig	2012-06-05 23:37:06.000000000 +0900
++++ src/Makefile.in	2012-06-25 16:34:16.000000000 +0900
+@@ -308,7 +308,10 @@
+ 						 libmhe/libmhe.a \
+ 						 ../lib/libfoo.a $(SSH_LIBS)
+ 
+-yafc_DEPENDENCIES = $(yafc_LDADD) yafcrc.h
++yafc_DEPENDENCIES = ftp/libftp.a \
++						 libmhe/libmhe.a \
++						 ../lib/libfoo.a yafcrc.h
++
+ AM_CPPFLAGS = -I$(srcdir) \
+ 							-I$(top_srcdir)/lib \
+ 							-I$(top_srcdir)/src/ftp \
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Armin Pirkovitsch freebsd_committer freebsd_triage 2012-07-19 18:47:08 UTC
State Changed
From-To: open->closed

Committed. Thanks!