Hi,
I'm using the SquidAnalyzer network analysis tool in combination with Squid. Up until now, I've been running Slackware Linux on my servers. I built a custom package that installs SquidAnalyzer to /var/www/vhosts/squidreport/html. Then I setup an Apache virtual host for SquidAnalyzer's pages.
Since I'm migrating my servers from Slackware to CentOS, I'd like to build a corresponding RPM package for SquidAnalyzer. I downloaded the sources here:
http://squidanalyzer.darold.net/download.html
Then I set up a local build environment as described in the CentOS wiki.
The source tarball already contains a squidanalyzer.spec file in the packaging/RPM subdirectory. So I copied that spec file over to ~/rpmbuild/SPECS and the source tarball to ~/rpmbuild/SOURCES. The version information in the spec file is wrong, it indicates 6.2, but the version of SquidAnalyzer is 6.2-1.
Unfortunately when I insert the correct version in the spec file, I get this:
$ rpmbuild -ba --clean squidanalyzer.spec error: line 5: Illegal char '-' in: Version: 6.2-1
What can I do now?
Niki
Le 11/03/2015 09:40, Niki Kovacs a écrit :
Unfortunately when I insert the correct version in the spec file, I get this:
$ rpmbuild -ba --clean squidanalyzer.spec error: line 5: Illegal char '-' in: Version: 6.2-1
I'll answer that myself, since I just found the culprit. There's a version mismatch between the tarball and the extracted source directory. Simply renaming the tarball to version 6.2 fixed it.
Cheers,
Niki
Thanks for the info.
Any reason you're leaving slackware now?
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Niki Kovacs Sent: Wednesday, March 11, 2015 05:23 AM To: centos@centos.org Subject: Re: [CentOS] SquidAnalyzer: minor trouble building RPM
Le 11/03/2015 09:40, Niki Kovacs a écrit :
Unfortunately when I insert the correct version in the spec file, I get this:
$ rpmbuild -ba --clean squidanalyzer.spec error: line 5: Illegal char '-' in: Version: 6.2-1
I'll answer that myself, since I just found the culprit. There's a version mismatch between the tarball and the extracted source directory. Simply renaming the tarball to version 6.2 fixed it.
Cheers,
Niki
-- Microlinux - Solutions informatiques 100% Linux et logiciels libres 7, place de l'église - 30730 Montpezat Web : http://www.microlinux.fr Mail : info@microlinux.fr Tél. : 04 66 63 10 32 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Le 11/03/2015 12:52, Joseph L. Brunner a écrit :
Thanks for the info.
Any reason you're leaving slackware now?
Yes. As much as I appreciate Slackware's bone-headed philosophy, the installer, the simple startup scripts, the general Keep-It-Simple approach and the overall robustness, the absence of PAM has been a real showstopper for me.
Until now the only way to setup centralized authentication and roaming profiles is to use a combination of NIS and NFS, which is far from ideal in terms of security.
I suggested the inclusion of PAM in a public poll in the Slackware forum on LinuxQuestions.org, which got mixed results. About half of the Slackware users welcomed the idea, the other half got pretty angry, and the result turned into a flamefest.
The idea had been to somewhat open up Slackware to the enterprise world, but as far as I can reckon, the word "enterprise" curiously enough seems to have a bad taste for a significant portion of Slackware's user base.
After this heated exchange, I decided to take a pragmatic approach and choose a more appropriate tool as a base for my business. So here I am.
Cheers,
Niki
PS: after a few years on LQ, the general tone on the CentOS mailing list seems like the Alban Berg Quartet after Slayer@Hellfest. :o)
On Wed, Mar 11, 2015 at 7:37 AM, Niki Kovacs info@microlinux.fr wrote:
After this heated exchange, I decided to take a pragmatic approach and choose a more appropriate tool as a base for my business. So here I am.
Yeah, businesses have this weird idea that if something works right, it should just keep working for the life of the business...
By the way - if you are new to Centos and RH-style in general, you might want to look at how much of the local configuration settings are abstracted into files under /etc/sysconfig/. I'm not sure if slackware used that at all since it is a SysVinit concept - or how it will evolve with the change do systemd, but generally for the packages that pick up option settings there you can avoid editing the main config files and setting up conflicts with future rpm updates. It's not perfect but it helps.
Le 11/03/2015 16:55, Les Mikesell a écrit :
By the way - if you are new to Centos and RH-style in general
I'm not. In 2009 I published a book about Linux system administration basics, based on CentOS 5.3.
That being said, I'm doing extensive RTFM to catch up with what's happened since then, especially in 7.x.
Cheers,
Niki
On Wed, Mar 11, 2015 at 10:23:07AM +0100, Niki Kovacs wrote:
Le 11/03/2015 09:40, Niki Kovacs a écrit :
Unfortunately when I insert the correct version in the spec file, I get this:
$ rpmbuild -ba --clean squidanalyzer.spec error: line 5: Illegal char '-' in: Version: 6.2-1
I'll answer that myself, since I just found the culprit. There's a version mismatch between the tarball and the extracted source directory. Simply renaming the tarball to version 6.2 fixed it.
Also, you can't use a - in the Version tag in the rpm spec file. A mismatch between the tarball name and the extracted source directory would be a different error.