Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Mar 2012 23:25:38 -0700
From:      Justin Smith <freebsd.users@gmail.com>
To:        "Janky Jay, III" <ek@purplehat.org>
Cc:        freebsd-ports-bugs@freebsd.org
Subject:   Re: ports/166333: security/maia fails
Message-ID:  <CAOhdvrViQte31_OMGvHTT3GYrW6tbyu0dP_0zA1wgyFwZgJbJQ@mail.gmail.com>
In-Reply-To: <CAOhdvrUb08S-5tNot3n4SC=fgh7uF1E5t5r9rifb1G9vesJFrA@mail.gmail.com>
References:  <201203231758.q2NHwGdB064684@freefall.freebsd.org> <4F6CD57E.8090709@purplehat.org> <CAOhdvrXTtD8aoPUKc5LZDkUQqbKYt7epgoaOF9A1RrOPrJnxZg@mail.gmail.com> <4F7271C7.5000707@purplehat.org> <CAOhdvrVQ5xCJzmcriuYeU3h7b0acKGA8pC2QrawtjUX6ZtEREw@mail.gmail.com> <4F735857.9030609@purplehat.org> <CAOhdvrUb08S-5tNot3n4SC=fgh7uF1E5t5r9rifb1G9vesJFrA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
After a lot of messing around I managed to build it -

[11:11pm] /usr/ports/security/maia# make NO_CHECKSUM=3Dyes
=3D=3D=3D>  License check disabled, port has not defined LICENSE
=3D=3D=3D>  Found saved configuration for maia-1.0.3.r1575
=3D=3D=3D>  Extracting for maia-1.0.3.r1575
=3D=3D=3D>  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-cach=
e.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-digest=
s.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-remind=
ers.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
=3D=3D=3D>   maia-1.0.3.r1575 depends on file: /usr/local/sbin/apxs - found
=3D=3D=3D>   maia-1.0.3.r1575 depends on shared library: mysqlclient.18 - f=
ound
=3D=3D=3D>   maia-1.0.3.r1575 depends on shared library: pq.5 - found
=3D=3D=3D>  Configuring for maia-1.0.3.r1575
[11:11pm] /usr/ports/security/maia# make NO_CHECKSUM=3Dyes install clean
=3D=3D=3D>  Installing for maia-1.0.3.r1575
=3D=3D=3D>   maia-1.0.3.r1575 depends on package: p5-Unix-Syslog>=3D0.94 - =
found
=3D=3D=3D>   maia-1.0.3.r1575 depends on package: p5-MIME-Tools>=3D4.116 - =
found
=3D=3D=3D>   maia-1.0.3.r1575 depends on package: p5-Convert-TNEF>=3D0.08 -=
 found
=3D=3D=3D>   maia-1.0.3.r1575 depends on package: p5-Convert-UUlib>=3D1.08,=
1 - found
=3D=3D=3D>   maia-1.0.3.r1575 depends on package: p5-Net-CIDR-Lite>=3D0.18 =
- not found
=3D=3D=3D>    Verifying install for p5-Net-CIDR-Lite>=3D0.18 in
/usr/ports/net/p5-Net-CIDR-Lite
=3D=3D=3D>  License check disabled, port has not defined LICENSE
=3D=3D=3D>  Extracting for p5-Net-CIDR-Lite-0.21
=3D=3D=3D>   p5-Net-CIDR-Lite-0.21 depends on file: /usr/local/bin/perl5.12=
.4 - found
=3D=3D=3D>  Patching for p5-Net-CIDR-Lite-0.21
=3D=3D=3D>   p5-Net-CIDR-Lite-0.21 depends on file: /usr/local/bin/perl5.12=
.4 - found
=3D=3D=3D>   p5-Net-CIDR-Lite-0.21 depends on file: /usr/local/bin/perl5.12=
.4 - found
=3D=3D=3D>  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.
=3D=3D=3D>   Generating temporary packing list
=3D=3D=3D>  Checking if security/maia already installed
=3D=3D=3D> Creating users and/or groups.
Using existing group `vscan'.
Using existing user `vscan'.
=3D=3D=3D> 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=3D"YES"
=3D=3D=3D> Correct pkg-plist sequence to create group(s) and user(s)
=3D=3D=3D>   Registering installation for maia-1.0.3.r1575
=3D=3D=3D>  Cleaning for p5-Net-CIDR-Lite-0.21
=3D=3D=3D>  Cleaning for p5-Text-CSV-1.21
=3D=3D=3D>  Cleaning for p5-Data-UUID-1.217
=3D=3D=3D>  Cleaning for p5-Template-Toolkit-2.24
=3D=3D=3D>  Cleaning for pear-Mail_Mime-1.8.2,2
=3D=3D=3D>  Cleaning for pear-Mail_mimeDecode-1.5.5
=3D=3D=3D>  Cleaning for pear-Pager-2.4.8
=3D=3D=3D>  Cleaning for smarty-2.6.26
=3D=3D=3D>  Cleaning for p5-FuzzyOcr-devel-3.6.0_4
=3D=3D=3D>  Cleaning for p5-Crypt-Blowfish-2.12
=3D=3D=3D>  Cleaning for p5-Mail-DomainKeys-1.0_1
=3D=3D=3D>  Cleaning for p5-AppConfig-1.66
=3D=3D=3D>  Cleaning for p5-Date-Calc-6.3
=3D=3D=3D>  Cleaning for p5-Image-Info-1.32
=3D=3D=3D>  Cleaning for p5-Image-Size-3.221_1
=3D=3D=3D>  Cleaning for p5-Pod-POM-0.27_2
=3D=3D=3D>  Cleaning for gifsicle-1.63
=3D=3D=3D>  Cleaning for gocr-0.49
=3D=3D=3D>  Cleaning for ocrad-0.21
=3D=3D=3D>  Cleaning for p5-MLDBM-2.04
=3D=3D=3D>  Cleaning for p5-MLDBM-Sync-0.30
=3D=3D=3D>  Cleaning for p5-String-Approx-3.26_1
=3D=3D=3D>  Cleaning for p5-Bit-Vector-7.1
=3D=3D=3D>  Cleaning for p5-Carp-Clan-6.04
=3D=3D=3D>  Cleaning for p5-XML-LibXML-1.96,1
=3D=3D=3D>  Cleaning for p5-File-Slurp-9999.19
=3D=3D=3D>  Cleaning for tk-wrapper-1.1_1
=3D=3D=3D>  Cleaning for p5-FreezeThaw-0.50.01
=3D=3D=3D>  Cleaning for shc-3.8.7
=3D=3D=3D>  Cleaning for maia-1.0.3.r1575

Had to patch Makefile by hand. Makefile - http://paste.pocoo.org/show/57290=
1/

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> wr=
ote:
> 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: =A0new 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: =A0new 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: =A0new 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: =A0new 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: =A0new 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: =A0new 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: =A0new 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: =A0new
> 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: =A0new
> 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: =A0new 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: =A0new 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: =A0new 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: =A0new 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.
>>>
>>
>> =A0 =A0 =A0 =A0Shouldn't be anything Linux related at all. I don't use L=
inux 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.
>>>
>>
>> =A0 =A0 =A0 =A0Okay. Thanks! It would really be nice to put an end to th=
is "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 =3D=3D=3D> make =3D=3D=3D> =A0License check disabl=
ed,
>>>>>> port has not defined LICENSE =3D=3D=3D> =A0Found saved configuration
>>>>>> for maia-1.0.3.r1575_1 =3D=3D=3D> =A0Extracting for
>>>>>> maia-1.0.3.r1575_1 =3D> SHA256 Checksum OK for
>>>>>> maia-1.0.3-r1575.tar.gz. =3D=3D=3D> =A0Patching for
>>>>>> maia-1.0.3.r1575_1 =3D=3D=3D> =A0 maia-1.0.3.r1575_1 depends on
>>>>>> file: /usr/local/sbin/apxs - found =3D=3D=3D> =A0 maia-1.0.3.r1575_1
>>>>>> depends on shared library: mysqlclient.18 - not found =3D=3D=3D>
>>>>>> Verifying install for mysqlclient.18 in
>>>>>> /usr/ports/databases/mysql55-client =3D=3D=3D> =A0License check
>>>>>> disabled, port has not defined LICENSE =3D=3D=3D> Found saved
>>>>>> configuration for mysql-client-5.5.20 =3D=3D=3D> =A0Extracting for
>>>>>> mysql-client-5.5.22 =3D> 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=3D166333
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.11 (GNU/Linux)
>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>>
>> iEYEARECAAYFAk9zWFcACgkQZ5znzUsaCySqggCfWNGWAxeMZj9CHC29f7KhhQVl
>> lE0AnR4V1KHunv7XXLzAflXcNbRyPC2P
>> =3DEzFG
>> -----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOhdvrViQte31_OMGvHTT3GYrW6tbyu0dP_0zA1wgyFwZgJbJQ>