From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Jan 5 15:21:02 2015 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D2DDB4F8 for ; Mon, 5 Jan 2015 15:21:02 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B30CD671DC for ; Mon, 5 Jan 2015 15:21:02 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t05FL26H078793 for ; Mon, 5 Jan 2015 15:21:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 196516] [New Port] mail/openemm2013 OpenEMM a email marketing enterprise app Date: Mon, 05 Jan 2015 15:21:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: horst.leitenmueller@liwest.at X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jan 2015 15:21:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D196516 Bug ID: 196516 Summary: [New Port] mail/openemm2013 OpenEMM a email marketing enterprise app Product: Ports & Packages Version: Latest Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: horst.leitenmueller@liwest.at Created attachment 151359 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D151359&action= =3Dedit openemm2013.shar includes complete port i have some additional question on porting an java application: 0) do-install copytree_share to exclude documentation directory not working (moved doc one level up in do-build: ) do-build: ${MV} ${WRKSRC}/target/USR_SHARE ${WRKSRC}/USR_SHARE do-install ${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME} (cd ${WRKSRC}/target/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${PREFIX}/${PORTNAME} "! -name USR_SHARE*") post-install # update also /usr/local/share with the docs ${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/USR_SHARE/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDI= R}) is there a better solution for this ? 1) pkg-plist=20 documentation with=20 i added for all entries in the Docsdir=20 %%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.txt=20=20 but i get a warning that=20 portlint -A WARN: /usr/ports/mail/openemm2013/pkg-plist: Both ``%%PORTDOCS%%@dirrm %%DOCSDIR%%'' and ``%%PORTDOCS%%@unexec %D/%%DOCSDIR%% 2>/dev/null || true'' are missing. At least one should be used. and in portershandbook https://www.freebsd.org/doc/en/books/porters-handbook/plist-keywords.html=20 7.6.7.10.=C2=A0@dirrm directory (Deprecated) so now what i have to add :-) 2) License if not defined in freebsd.lic db mk and building with poudriere will fail if the license must be accepted, = how can this be solved ? LICENSE=3D MPL #LICENSE=3D CPAL #LICENSE_COMB=3D multi #LICENSE_NAME=3D Common Public Attribution License Version 1.0 (CPAL) #LICENSE_FILE=3D ${DOCSDIR}/LICENSE.txt=20=20 #LICENSE_PERMS_OpenEMM=3D auto-accept # dist-mirror pkg-mirror auto-accept is there a best practice to transfer all lic to the correct place of freebsd post-install: # TODO LEI # move the licenses to the correct place # /usr/local/share/doc/openemm2013/LICENSE.txt # /usr/local/share/doc/openemm2013/ThirdPartyLicences/* 3) devel/libslang2 name for lib dependency (LIB_DEPENDS) but libslang.so is the one which must be declared otherwise it will be n= ever found is it normal in this way ? LIB_DEPENDS=3D libslang.so:${PORTSDIR}/devel/libslang2 4) USES python best way to define dynamically RUN_DEPENDS for db (py27-MySQLdb56 ) RUN_DEPENDS=3D ${TOMCATHOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat8 py27-MySQLdb56>=3D1.2.3:${PORTSDIR}/databases/py-MySQLdb56 .... USES=3D python:2.7,run ....=20 5) best way to reinplace_cmd for paths in the target system example=20 @${REINPLACE_CMD} -e 's|$$HOME|\${PREFIX}\/\${PORTNAME}|g' -e 's|-L INF= O|-L INFO -s /var/run/openemm/bav.sock|' ${WRKSRC}/src/script/control/bounce.sh to hardcode /var/run will not be the best or ? also portlint is complaining root@openemm:/usr/ports/mail/openemm2013 # portlint WARN: Makefile: possible use of absolute pathname "/var". 6) not able to replace i have a few problems with the REINPLACE_CMD=20 i thougt special character escaping is working as normal example \$ would escapce $ but it's not $$ escapes it=20 problem here a can't escape the single quote only in this way it's working... another problem i wanted to use grouping but this was also not work= ing LHS |(base=3D)os.envirion.*| and on RHS |\1=3D${PREFIX}...|=20 @${REINPLACE_CMD} -e "s|base =3D os.environ\['HOME'\]| base =3D '${PREFIX}\/${PORTNAME}'|g" -e "s|lockpath =3D os.environ\['LOCK_HOME'\]|lo= ckpath =3D '/var/run/openemm'|g" ${WRKSRC}/src/script/lib/agn.py 7) symlink for pyhton=20 the application refers to the /usr/local/bin/python path installation of pyhton is only with version Nr # TODO LEI #${LN} -sf /usr/local/bin/python2.7 /usr/local/bin/python how can this be done ?, (btw.: app has no variable for current pyhton p= ath) 8) portlint and position of LIB_DEPENDS / BUILD_DEPENDS / RUN_DEPENDS portlint complains about position of following WARN: Makefile: "BUILD_DEPENDS" has to appear earlier. WARN: Makefile: "RUN_DEPENDS" has to appear earlier. i have tried now all positions before ... but without success, where should= it be placed (i would love to have a xsd for that to know WHAT is wrong and wh= ere it should be...) 9) portlint -A was complaing about not using PREFIX in pkg-message i thougt it will be replaced ? but this is not working as expected; is there a other way to get this solved=20 or is the only way to hardcode it ? --=20 You are receiving this mail because: You are the assignee for the bug.=