Message info
 
To:Janky Jay, III From:Justin Smith Subject:Re: ports/166333: security/maia fails Date:Wed, 28 Mar 2012 23:25:38 -0700
 

After a lot of messing around I managed to build it -

[11:11pm] /usr/ports/security/maia# make NO_CHECKSUM=yes
===> License check disabled, port has not defined LICENSE
===> Found saved configuration for maia-1.0.3.r1575
===> Extracting for maia-1.0.3.r1575
===> Patching for maia-1.0.3.r1575
/usr/bin/sed -i.bak -e
"s|/etc/maia/maia.conf|/usr/local/etc/maia.conf|"
/usr/ports/security/maia/work/maia-1.0-r1575/scripts/configtest.pl
/usr/bin/sed -i.bak -e
"s|/etc/maia/maia.conf|/usr/local/etc/maia.conf|"
/usr/ports/security/maia/work/maia-1.0-r1575/scripts/expire-quarantine-cache.pl
/usr/bin/sed -i.bak -e
"s|/etc/maia/maia.conf|/usr/local/etc/maia.conf|"
/usr/ports/security/maia/work/maia-1.0-r1575/scripts/generate-key.pl
/usr/bin/sed -i.bak -e
"s|/etc/maia/maia.conf|/usr/local/etc/maia.conf|"
/usr/ports/security/maia/work/maia-1.0-r1575/scripts/load-sa-rules.pl
/usr/bin/sed -i.bak -e
"s|/etc/maia/maia.conf|/usr/local/etc/maia.conf|"
/usr/ports/security/maia/work/maia-1.0-r1575/scripts/maiadbtool.pl
/usr/bin/sed -i.bak -e
"s|/etc/maia/maia.conf|/usr/local/etc/maia.conf|"
/usr/ports/security/maia/work/maia-1.0-r1575/scripts/process-quarantine.pl
/usr/bin/sed -i.bak -e
"s|/etc/maia/maia.conf|/usr/local/etc/maia.conf|"
/usr/ports/security/maia/work/maia-1.0-r1575/scripts/resend.pl
/usr/bin/sed -i.bak -e
"s|/etc/maia/maia.conf|/usr/local/etc/maia.conf|"
/usr/ports/security/maia/work/maia-1.0-r1575/scripts/send-quarantine-digests.pl
/usr/bin/sed -i.bak -e
"s|/etc/maia/maia.conf|/usr/local/etc/maia.conf|"
/usr/ports/security/maia/work/maia-1.0-r1575/scripts/send-quarantine-reminders.pl
/usr/bin/sed -i.bak -e
"s|/etc/maia/maia.conf|/usr/local/etc/maia.conf|"
/usr/ports/security/maia/work/maia-1.0-r1575/scripts/stats-snapshot.pl
===> maia-1.0.3.r1575 depends on file: /usr/local/sbin/apxs - found
===> maia-1.0.3.r1575 depends on shared library: mysqlclient.18 - found
===> maia-1.0.3.r1575 depends on shared library: pq.5 - found
===> Configuring for maia-1.0.3.r1575
[11:11pm] /usr/ports/security/maia# make NO_CHECKSUM=yes install clean
===> Installing for maia-1.0.3.r1575
===> maia-1.0.3.r1575 depends on package: p5-Unix-Syslog>=0.94 - found
===> maia-1.0.3.r1575 depends on package: p5-MIME-Tools>=4.116 - found
===> maia-1.0.3.r1575 depends on package: p5-Convert-TNEF>=0.08 - found
===> maia-1.0.3.r1575 depends on package: p5-Convert-UUlib>=1.08,1 - found
===> maia-1.0.3.r1575 depends on package: p5-Net-CIDR-Lite>=0.18 - not found
===> Verifying install for p5-Net-CIDR-Lite>=0.18 in
/usr/ports/net/p5-Net-CIDR-Lite
===> License check disabled, port has not defined LICENSE
===> Extracting for p5-Net-CIDR-Lite-0.21
===> p5-Net-CIDR-Lite-0.21 depends on file: /usr/local/bin/perl5.12.4 - found
===> Patching for p5-Net-CIDR-Lite-0.21
===> p5-Net-CIDR-Lite-0.21 depends on file: /usr/local/bin/perl5.12.4 - found
===> p5-Net-CIDR-Lite-0.21 depends on file: /usr/local/bin/perl5.12.4 - found
===> Configuring for p5-Net-CIDR-Lite-0.21
Checking if your kit is complete...
Looks good
.
.
.
.
Created "/var/maiad" directory.
Created "/var/maiad/db" directory.
Created "/var/maiad/tmp" directory.
Created "/var/maiad/var" directory.
Created "/var/maiad/maia" directory.
Created "/var/maiad/maia/scripts" directory.
Created "/var/maiad/maia/templates" directory.
Created "/var/maiad/virusmails" directory.
===> Generating temporary packing list
===> Checking if security/maia already installed
===> Creating users and/or groups.
Using existing group `vscan'.
Using existing user `vscan'.
===> Installing rc.d startup script(s)
To use Maia-Mailguard, you need to install at least one virus scanner.
The following virus scanners are available in the FreeBSD ports
collection:

security/clamav Clam Antivirus
security/f-prot F-Prot Antivirus
security/drweb DrWeb antivirus suite

Enable Maia-Mailguard in /etc/rc.conf with the following line:

maiad_enable="YES"
===> Correct pkg-plist sequence to create group(s) and user(s)
===> Registering installation for maia-1.0.3.r1575
===> Cleaning for p5-Net-CIDR-Lite-0.21
===> Cleaning for p5-Text-CSV-1.21
===> Cleaning for p5-Data-UUID-1.217
===> Cleaning for p5-Template-Toolkit-2.24
===> Cleaning for pear-Mail_Mime-1.8.2,2
===> Cleaning for pear-Mail_mimeDecode-1.5.5
===> Cleaning for pear-Pager-2.4.8
===> Cleaning for smarty-2.6.26
===> Cleaning for p5-FuzzyOcr-devel-3.6.0_4
===> Cleaning for p5-Crypt-Blowfish-2.12
===> Cleaning for p5-Mail-DomainKeys-1.0_1
===> Cleaning for p5-AppConfig-1.66
===> Cleaning for p5-Date-Calc-6.3
===> Cleaning for p5-Image-Info-1.32
===> Cleaning for p5-Image-Size-3.221_1
===> Cleaning for p5-Pod-POM-0.27_2
===> Cleaning for gifsicle-1.63
===> Cleaning for gocr-0.49
===> Cleaning for ocrad-0.21
===> Cleaning for p5-MLDBM-2.04
===> Cleaning for p5-MLDBM-Sync-0.30
===> Cleaning for p5-String-Approx-3.26_1
===> Cleaning for p5-Bit-Vector-7.1
===> Cleaning for p5-Carp-Clan-6.04
===> Cleaning for p5-XML-LibXML-1.96,1
===> Cleaning for p5-File-Slurp-9999.19
===> Cleaning for tk-wrapper-1.1_1
===> Cleaning for p5-FreezeThaw-0.50.01
===> Cleaning for shc-3.8.7
===> Cleaning for maia-1.0.3.r1575

Had to patch Makefile by hand. Makefile - http://paste.pocoo.org/show/572901/

Thanks for your time and show of support.

Best,

Justin


On Wed, Mar 28, 2012 at 10:23 PM, Justin Smith <freebsd.users@gmail.com> wrote:
> Hi Janky:
>
> This is what I get on tinderbox -
>
> [10:09pm] /usr/local/tinderbox/scripts# ./tc addPort -b
> 8-SATBLE-FreeBSD-amd64 -d security/maia
> WARN: Failed to add TEST_DEPENDS entry for databases/p5-BerkeleyDB:
> ERROR: new row for relation "port_dependencies" violates check
> constraint "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for databases/p5-BerkeleyDB:
> ERROR: new row for relation "port_dependencies" violates check
> constraint "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for www/p5-Template-Toolkit:
> ERROR: new row for relation "port_dependencies" violates check
> constraint "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for www/p5-Template-Toolkit:
> ERROR: new row for relation "port_dependencies" violates check
> constraint "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for security/p5-Net-SSLeay:
> ERROR: new row for relation "port_dependencies" violates check
> constraint "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for security/p5-Net-SSLeay:
> ERROR: new row for relation "port_dependencies" violates check
> constraint "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for security/p5-Net-SSLeay:
> ERROR: new row for relation "port_dependencies" violates check
> constraint "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for mail/p5-MIME-Tools: ERROR:
> new row for relation "port_dependencies" violates check constraint
> "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for dns/p5-Net-DNS: ERROR: new
> row for relation "port_dependencies" violates check constraint
> "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for dns/p5-Net-DNS: ERROR: new
> row for relation "port_dependencies" violates check constraint
> "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for devel/p5-Test-NoWarnings:
> ERROR: new row for relation "port_dependencies" violates check
> constraint "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for devel/p5-CPAN-Meta-YAML:
> ERROR: new row for relation "port_dependencies" violates check
> constraint "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for devel/p5-Module-Build:
> ERROR: new row for relation "port_dependencies" violates check
> constraint "port_dependencies_dependency_type_check"
> WARN: Failed to add TEST_DEPENDS entry for devel/p5-Module-Build:
> ERROR: new row for relation "port_dependencies" violates check
> constraint "port_dependencies_dependency_type_check"
>
> Best!
>
> On Wed, Mar 28, 2012 at 11:28 AM, Janky Jay, III <ek@purplehat.org> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Hi Justin,
>>
>> On 03/27/2012 10:12 PM, Justin Smith wrote:
>>> Hi Janky,
>>>
>>> Looks like the source on purplehat is Linux specific. During
>>> 'locate mysqlclient' I can see libmysqlclient.so.18 on FreeBSD
>>> while the make searches for mysqlclient.18.
>>>
>>
>> Shouldn't be anything Linux related at all. I don't use Linux for
>> anything (except the occasional desktop.) The source should be pure FBSD.
>>
>>> I don't have expertise to toy with Makefile and I don't want to
>>> mess native ports. I can try that by creating a jail (unlikely
>>> because I have other issues with ULE scheduler and my system lags
>>> at times) or in tinderbox. I will sure get you a complete log with
>>> errors in order to help you fix this. I will build this in
>>> tinderbox with stock source (checksum error) and with source from
>>> purplehat.
>>>
>>
>> Okay. Thanks! It would really be nice to put an end to this "missing"
>> mysqlclient.* issue.
>>
>>> Best,
>>>
>>> Justin
>>>
>>
>> Regards,
>> Janky Jay, III
>>
>>> On Wed, Mar 28, 2012 at 10:04 AM, Janky Jay, III <ek@purplehat.org>
>>> wrote: Hi Justin,
>>>
>>> On 03/27/2012 03:50 AM, Justin Smith wrote:
>>>>>> Hi Janky,
>>>>>>
>>>>>> I tried downloading sources from purplehat.org and ran make,
>>>>>> it has several issues such as -
>>>>>>
>>>>>> "maia-1.0.3.r1575_1 depends on shared library:
>>>>>> mysqlclient.18". I already have mysql55-client installed but
>>>>>> make tries to rebuild it and returns errors such as
>>>>>> mysqlclient.18 not found. I am trying to fix this, will get
>>>>>> back to you tomorrow with other issues.
>>>>>>
>>>
>>> Hrm. There have actually be a few people that have had this issue
>>> on the guide's mailing list. I never did get a solid answer as to
>>> what the fix is/was. I'd definitely be interested to see what you
>>> figure out about it as I've never been able to reproduce this...
>>>
>>>>>> Some more details ===> make ===> License check disabled,
>>>>>> port has not defined LICENSE ===> Found saved configuration
>>>>>> for maia-1.0.3.r1575_1 ===> Extracting for
>>>>>> maia-1.0.3.r1575_1 => SHA256 Checksum OK for
>>>>>> maia-1.0.3-r1575.tar.gz. ===> Patching for
>>>>>> maia-1.0.3.r1575_1 ===> maia-1.0.3.r1575_1 depends on
>>>>>> file: /usr/local/sbin/apxs - found ===> maia-1.0.3.r1575_1
>>>>>> depends on shared library: mysqlclient.18 - not found ===>
>>>>>> Verifying install for mysqlclient.18 in
>>>>>> /usr/ports/databases/mysql55-client ===> License check
>>>>>> disabled, port has not defined LICENSE ===> Found saved
>>>>>> configuration for mysql-client-5.5.20 ===> Extracting for
>>>>>> mysql-client-5.5.22 => SHA256 Checksum OK for
>>>>>> mysql-5.5.22.tar.gz.
>>>
>>> Okay. So, the newer tarball works fine without checksum errors,
>>> correct? As long as you're using the proper port tree version and
>>> tarball, we're definitely on the right track. :)
>>>
>>>>>>
>>>>>>
>>>>>> Best,
>>>>>>
>>>>>> Justin
>>>>>>
>>>
>>> Regards, Janky Jay, III
>>>
>>>
>>>>>>
>>>>>> On Fri, Mar 23, 2012 at 12:56 PM, Janky Jay, III
>>>>>> <ek@purplehat.org> wrote: Thanks, Chris! There was also the
>>>>>> possibility of an old maia tarball in the distfiles dir.
>>>>>> Suggested a removal and re-download.
>>>>>>
>>>>>> On 03/23/2012 11:58 AM, crees@FreeBSD.org wrote:
>>>>>>>>> Synopsis: security/maia fails
>>>>>>>>>
>>>>>>>>> State-Changed-From-To: feedback->closed
>>>>>>>>> State-Changed-By: crees State-Changed-When: Fri Mar 23
>>>>>>>>> 17:58:15 UTC 2012 State-Changed-Why: Run make clean and
>>>>>>>>> try again
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Responsible-Changed-From-To: freebsd-ports-bugs->crees
>>>>>>>>> Responsible-Changed-By: crees Responsible-Changed-When:
>>>>>>>>> Fri Mar 23 17:58:15 UTC 2012 Responsible-Changed-Why:
>>>>>>>>> Run make clean and try again
>>>>>>>>>
>>>>>>>>> http://www.freebsd.org/cgi/query-pr.cgi?pr=166333
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.11 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAk9zWFcACgkQZ5znzUsaCySqggCfWNGWAxeMZj9CHC29f7KhhQVl
>> lE0AnR4V1KHunv7XXLzAflXcNbRyPC2P
>> =EzFG
>> -----END PGP SIGNATURE-----
_______________________________________________
freebsd-ports-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"