Bug 174784 - www/mod_security doesn't install. Incorrect src in Makefile
Summary: www/mod_security doesn't install. Incorrect src in Makefile
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: Marcelo Araujo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-28 20:40 UTC by Dewayne
Modified: 2013-02-04 10:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dewayne 2012-12-28 20:40:00 UTC
modsecurity builds but fails to install due to an incorrect (source) location of a binary.  Please refer to patch below.

Making install in mlogc
test -z "/usr/local/bin" || ../build/install-sh -c -d "/usr/local/bin"
  /bin/sh ../libtool   --mode=install install  -s -o root -g wheel -m 555 mlogc '/usr/local/bin'
libtool: install: install -o root -g wheel -m 555 -s mlogc /usr/local/bin/mlogc
test -z "/usr/local/bin" || ../build/install-sh -c -d "/usr/local/bin"
 install  -o root -g wheel -m 555 mlogc-batch-load.pl '/usr/local/bin'
Making install in tests
install  -o root -g wheel -m 444 /var/ports/usr/ports/www/mod_security/work/modsecurity-apache_2.6.6/modsecurity.conf-recommended /usr/local/etc/modsecurity.conf-example
install  -s -o root -g wheel -m 555 /var/ports/usr/ports/www/mod_security/work/modsecurity-apache_2.6.6/mlogc-src/mlogc /usr/local/bin/
install: /var/ports/usr/ports/www/mod_security/work/modsecurity-apache_2.6.6/mlogc-src/mlogc: No such file or directory
*** [post-install] Error code 71

Fix: 

.include <bsd.port.post.mk>--IhvjBJ9Fr2k3cnnmyV1v6fbA1o14GP5TZdM4ZFTwXzShAv6r
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- Makefile.orig       2012-12-29 07:23:19.000000000 +1100
+++ Makefile    2012-12-29 07:23:52.000000000 +1100
@@ -80,7 +80,7 @@
        @(cd ${WRKSRC} && ${COPYTREE_SHARE} "doc" ${DOCSDIR}/)
 .endif
 .if defined(WITH_MLOGC)
-       ${INSTALL_PROGRAM} ${WRKSRC}/mlogc-src/mlogc ${PREFIX}/bin/
+       ${INSTALL_PROGRAM} ${WRKSRC}/mlogc/mlogc ${PREFIX}/bin/
 .endif
How-To-Repeat: cd /usr/ports/www/mod_security && make install
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-12-29 00:51:28 UTC
Responsible Changed
From-To: freebsd-ports-bugs->araujo

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Marcelo Araujo freebsd_committer freebsd_triage 2013-02-04 10:06:37 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-02-04 10:06:40 UTC
Author: araujo
Date: Mon Feb  4 10:06:31 2013
New Revision: 311600
URL: http://svnweb.freebsd.org/changeset/ports/311600

Log:
  - Fix mlogc source path.
  
  PR:		ports/174784
  Submitted by:	Dewayne <dewayne@amdg.etowns.org>

Modified:
  head/www/mod_security/Makefile   (contents, props changed)

Modified: head/www/mod_security/Makefile
==============================================================================
--- head/www/mod_security/Makefile	Mon Feb  4 10:04:11 2013	(r311599)
+++ head/www/mod_security/Makefile	Mon Feb  4 10:06:31 2013	(r311600)
@@ -80,7 +80,7 @@ post-install:
 	@(cd ${WRKSRC} && ${COPYTREE_SHARE} "doc" ${DOCSDIR}/)
 .endif
 .if defined(WITH_MLOGC)
-	${INSTALL_PROGRAM} ${WRKSRC}/mlogc-src/mlogc ${PREFIX}/bin/
+	${INSTALL_PROGRAM} ${WRKSRC}/mlogc/mlogc ${PREFIX}/bin/
 .endif
 
 .include <bsd.port.post.mk>
_______________________________________________
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"