Augustin-FL / building-pfsense-iso-from-source

How to: Building a pfSense .iso from sources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

./build.sh --update-pkg-repo Error snort not found

sreekupm opened this issue · comments

Dear Augustine,

Please help to solve the below issue.

=> snort-2.9.16.tar.gz doesn't seem to exist in /portdistfiles/.
=> Attempting to fetch https://snort.org/downloads/snort/snort-2.9.16.tar.gz
fetch: https://snort.org/downloads/snort/snort-2.9.16.tar.gz: Not Found
=> Attempting to fetch https://mirrors.rit.edu/zi/snort-2.9.16.tar.gz
fetch: https://mirrors.rit.edu/zi/snort-2.9.16.tar.gz: Not Found
=> Attempting to fetch https://www.zi0r.com/mirrors/snort-2.9.16.tar.gz
fetch: https://www.zi0r.com/mirrors/snort-2.9.16.tar.gz: Not Found
=> Attempting to fetch http://distcache.FreeBSD.org/local-distfiles/zi/snort-2.9.16.tar.gz
fetch: http://distcache.FreeBSD.org/local-distfiles/zi/snort-2.9.16.tar.gz: Not Found
=> Attempting to fetch http://distcache.us-east.FreeBSD.org/local-distfiles/zi/snort-2.9.16.tar.gz
fetch: http://distcache.us-east.FreeBSD.org/local-distfiles/zi/snort-2.9.16.tar.gz: Not Found
=> Attempting to fetch http://distcache.eu.FreeBSD.org/local-distfiles/zi/snort-2.9.16.tar.gz
fetch: http://distcache.eu.FreeBSD.org/local-distfiles/zi/snort-2.9.16.tar.gz: Not Found
=> Attempting to fetch http://distcache.us-west.FreeBSD.org/local-distfiles/zi/snort-2.9.16.tar.gz
fetch: http://distcache.us-west.FreeBSD.org/local-distfiles/zi/snort-2.9.16.tar.gz: Not Found
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/snort-2.9.16.tar.gz
fetch: http://distcache.FreeBSD.org/ports-distfiles/snort-2.9.16.tar.gz: Not Found
=> Couldn't fetch it - please try to retrieve this
=> port manually into /portdistfiles/ and try again.
*** Error code 1

Stop.
make: stopped in /usr/ports/security/snort
=>> Cleaning up wrkdir
===> Cleaning for snort-2.9.16
build of security/snort | snort-2.9.16 ended at Thu Aug 20 21:03:59 IST 2020
build time: 00:00:30
!!! build failure encountered !!!

Dear Augustin,

https://snort.org/downloads/snort/snort-2.9.16.tar.gz this link is not valid new link is
https://snort.org/downloads/snort/snort-2.9.16.1.tar.gz

Please update accordingly.

Hi,

I believe you are getting this error because your port repo is not in sync with pfsense's ports repo.

Netgate synchronized their own repo with official FreeBSD ports 2 days ago ( in pfsense/FreeBSD-ports@17d9ea4 ). Could you make sure your fork is up to date?

also...for information it seems that netgate is using FreeBSD 12.1 now. (pfsense/docs@3d2f773 ). maybe that's also part of the reason why you're getting this error?

Dear Augustin,

Same Error,
Please check I think its not updated.

Dear Augustin,

Please check the file
https://github.com/pfsense/FreeBSD-ports/blob/devel/security/snort/Makefile
PORTVERSION= 2.9.16

also check Snort Site

https://snort.org/downloads/

please do a pull request and change accordingly

12.2 doesn't fix the issue. Re-opening ..

Its seems like the synchronization issue between NetGate & FreeBSD I explained here

  • In August then in September, snort devs decided to release two new versions (config bump+distfile update). At this time of writing, the current version is 2.9.16.1 and the new tar.gz URL is http://distcache.freebsd.org/ports-distfiles/snort-2.9.16-1.tar.gz
  • But, NetGate didn't refresh their own Makefile. Which means that any attempt to build this port will now fail.
  • It is fine for NetGate, because they have built the port on their internal server in April. But it's not fine for you ...

The recommended way to fix this issue is to synchronize your FreeBSD ports with the official FreeBSD ports repository. Or, to disable snort build.

This issue should be fixed by pfsense/FreeBSD-ports#933

Dear Augustin,

I have made the below changes and built successfully
Makefile
Change to PORTVERSION= 2.9.16.1

distinfo
change the below accordingly
TIMESTAMP = 1587667384
SHA256 (snort-2.9.16.1.tar.gz) = 9688d8edf1da09dec6574000fb3c0e62f99c56428587616e17c60103c0bcbad7
SIZE (snort-2.9.16.1.tar.gz) = 6947960

the PR has been merged. Closing the issue