andybalholm / redwood

Web content filter that runs as an HTTP proxy
BSD 2-Clause "Simplified" License
219 stars 37 forks source link

RPM package for CentOS 6 and 7 and DEB for Debian and ubuntu #12

Closed elico closed 2 years ago

elico commented 7 years ago

Currently there is no binary package for CentOS 6 or 7 and other similar or for debian. I have expirence with this and I think I can put it together in a way and to promote the server into more production environments which needs it.

elico commented 7 years ago

First goes first. I am releasing RedWood "vesion" 0.1.2 which reflects that I have tested it and satisfied with it as a stable enough for production server. As I will build my tests the number will grow potentially towards 1.0.0 which means that it answers all the required functions for an SMB grade filtering proxy(which I belive it's already...) I am first building for CentOS 7 64bit, the repository(shared with squid) details are:

#/etc/yum.repos.d/squid.repo
[squid]
name=Squid repo for CentOS Linux - $basearch
#IL mirror
baseurl=http://www1.ngtech.co.il/repo/centos/$releasever/$basearch/
failovermethod=priority
enabled=1
gpgcheck=0

Or just install it using the command:

yum install http://ngtech.co.il/repo/centos/7/squid-repo-1-1.el7.centos.noarch.rpm

I am working on RPM for other OS such as older versions of CentOS\SLES\RHEL\OpenSUSE\Fedora\Debina\Ubuntu\Others.

unixabg commented 7 years ago

Greetings,

I would have interest for Debian, which if we can get in to unstable will eventually be pulled into Ubuntu.

On Sat, Mar 11, 2017 at 11:11 PM, Eliezer Croitoru <notifications@github.com

wrote:

First goes first. I am releasing RedWood "vesion" 0.1.2 which reflects that I have tested it and satisfied with it as a stable enough for production server. As I will build my tests the number will grow potentially towards 1.0.0 which means that it answers all the required functions for an SMB grade filtering proxy(which I belive it's already...) I am first building for CentOS 7 64bit, the repository(shared with squid) details are:

/etc/yum.repos.d/squid.repo

[squid] name=Squid repo for CentOS Linux - $basearch

IL mirror

baseurl=http://www1.ngtech.co.il/repo/centos/$releasever/$basearch/ failovermethod=priority enabled=1 gpgcheck=0 http://www1.ngtech.co.il/repo/centos/$releasever/$basearch/failovermethod=priorityenabled=1gpgcheck=0

Or just install it using the command:

yum install http://ngtech.co.il/repo/centos/7/squid-repo-1-1.el7.centos.noarch.rpm

I am working on RPM for other OS such as older versions of CentOS\SLES\RHEL\OpenSUSE\Fedora\Debina\Ubuntu\Others.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andybalholm/redwood/issues/12#issuecomment-285922991, or mute the thread https://github.com/notifications/unsubscribe-auth/AF_usoD3QlKeYNANblAN2Gx50MJRV-gmks5rk36SgaJpZM4MUb3P .

elico commented 7 years ago

@unixabg My method of packaging for Debian is kind of "different" then the usual since it's based on prebuilt binaries compared to a local compiled one. I do not know how the community is treating such packages but with a bit of additional scripting I belive it would be possible to add somwhow a script that will download GoLang, will install it, build redwood, cleanup and leave only thie binary. I will start with what works and then we can move on to later steps. If you know about a speific software that is based on GoLang that is already packaged for Debian I would like to here about it and see the deb sources.

unixabg commented 7 years ago

Greetings,

On Mon, Mar 13, 2017 at 12:25 AM, Eliezer Croitoru <notifications@github.com

wrote:

@unixabg https://github.com/unixabg My method of packaging for Debian is kind of "different" then the usual since it's based on prebuilt binaries compared to a local compiled one. I do not know how the community is treating such packages but with a bit of additional scripting I belive it would be possible to add somwhow write a script that will download GoLang, will install it, build redwood, cleanup and leave only thie binary.

First I am no packaging master, but the .deb file can be and often is compiled for a specific arch. As I understand it, when the .deb is built and compiled you end up with the final product with rules for install. Here are some notes I keep for myself on packaging http://fyeox.com/#Package%20Notes# maybe it assist in some way.

I will start wit what works and then we can move on to later steps.

Sure.

If you know about a speific software that is based on GoLang that is already packaged for Debian I would like to here about it and see the deb sources.

On debian try:

apt-cache rdepends golang-go

That should produce a list of packages that depend on golang-go. Then you can also use https://tracker.debian.org/ to get more details about the package.

I hope this information assists.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/andybalholm/redwood/issues/12#issuecomment-286018293, or mute the thread https://github.com/notifications/unsubscribe-auth/AF_uskADCkV-13RS9UICyV_X1N76N_Qiks5rlNNXgaJpZM4MUb3P .

elico commented 7 years ago

@unixabg thanks for the notes and the idea to use apt-cache. deb packages are the last on my list for now but I do have a basic template that I am using but the thing is that I literally do not like the way deb packages are being "prepared". I have learned to package using RPM and DEB as a part of my Linux Sysadmin tasks for quite some time and it took me couple rounds with each to understand what and how things works. The issue with DEB packaging is that I tried to learn it the "right" way about 5-10 times in the last 7 years reading the tutorials and I ended up with a much simpler way(to me).. here it goes: I am prepering a "special" Makefile and put the sources in place then I am using this Makefile to do all the dirty work for me kind of manually and then the dpkg-buildpackage thinks it's building the sources but it actually using a prebuilt and preinstalled(tested) files. I know that in the open-source world some would not like this idea and they indeed need to trust me to put the real binary and not an alternative precooked one. I know couple Linux sysadmins that would not trust anyone with pre-compiled binaries and are even scared of the sources.. so my conclusion is that they are living in a very either realistic or distant planet.

elico commented 7 years ago

@unixabg I am almost done my testing of the DEB packages. The book states that I should use alien to convert the RPM into DEB but for me it was pretty simple to re-create the DEB manually. The current packaging code is at:

There is a jenkins file and I have tested it to work on both Debian Jessie and Ubuntu Xenial. I believe it would also work on latest Debian but haven't tested yet. When I will be done with the packaging I will publish the repo details.

elico commented 7 years ago

@unixabg OK so the packages are at:

Version: 0.1.4

I am not closing the issue so it would be visible to other who might look for packages. If there is a better place to put the links at, let me know.

elico commented 6 years ago

@andybalholm What do you think about the packages? From the list

andybalholm commented 6 years ago

I've never looked at them, so I don't have much to say.

elico commented 6 years ago

@andybalholm They just work's... You can install, configure and use.

elico commented 6 years ago

@unixabg is this package good for you?

elico commented 2 years ago

If someone needs a package let me know.