Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Jul 2010 21:28:56 +0200
From:      David DEMELIER <demelier.david@gmail.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: dspam install
Message-ID:  <AANLkTikNzfsunMHILOG6oUgJqPQLu9AZQWX0t50HxxRH@mail.gmail.com>
In-Reply-To: <20100711212831.GA17226@magic.hamla.org>
References:  <4C3A2EE7.7020104@paz.bz> <20100711212831.GA17226@magic.hamla.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2010/7/11 Sahil Tandon <sahil@freebsd.org>:
> On Sun, 2010-07-11 at 13:51:51 -0700, Jim Pazarena wrote:
>
>> tried to make mail/dspam and it exits nagging that it
>> requires MySQL 5.0 client, where I have MySQL 5.1
>>
>> Is there a way to convince the dspam routine that
>> 5.1 is acceptable? (presuming that it IS).
>
> Yes, 'make config' and choose MYSQL51 (MYSQL50 is the default). =C2=A0Or:
>
> % make WITH_MYSQL51=3D1 WITHOUT_MYSQL50=3D1
>
> --
> Sahil Tandon <sahil@FreeBSD.org>
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
>

I think this :

.ifdef(WITH_MYSQL40)
WANT_MYSQL_VER=3D 40
#PKGNAMESUFFIX=3D -mysql40
.elifdef(WITH_MYSQL41)
WANT_MYSQL_VER=3D 41
#PKGNAMESUFFIX=3D -mysql41
.elifndef(WITHOUT_MYSQL50)
WANT_MYSQL_VER=3D 50
#PKGNAMESUFFIX=3D -mysql50
.elifdef(WITH_MYSQL51)
WANT_MYSQL_VER=3D 51
#PKGNAMESUFFIX=3D -mysql51
.elifdef(WITH_MYSQL55)
WANT_MYSQL_VER=3D 55
#PKGNAMESUFFIX=3D -mysql55
.endif

could be replaced by :

.if defined(WITH_MYSQL)
WANT_MYSQL_VER=3D 55 ...
.endif

Then if the user wants a different version he still can change using :
WITH_MYSQL_VER=3D 44.

Why don't keep it simple and simple? And why don't use things how they
should be used? I think there is still a lot of problems in many
ports. We must make a big KISS cleanup in the ports tree to make it as
good as NetBSD' pkgsrc.

Kind regards.

--=20
Demelier David



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