Great info David, thanks for sharing. Will definitely have a look at it as
soon as soon as I can free myself from some other stuff I am working on
(hopefully next week).

Best!

On Fri, Apr 24, 2015 at 4:50 PM, David Lang <[email protected]> wrote:

> minor correction
>
> rsyslog-pkg-ubuntu has trusty, rsyslog-pkg-debian has the debian codenames
>
> David Lang
>
> On Fri, 24 Apr 2015, David Lang wrote:
>
>  Date: Fri, 24 Apr 2015 16:45:01 -0700 (PDT)
>> From: David Lang <[email protected]>
>> Reply-To: [email protected]
>> To: Santiago Bassett <[email protected]>
>> Cc: "[email protected]" <[email protected]>
>> Subject: [ossec-list] Re: building .deb packages
>>
>>
>> so I installed the git-buildpackage package.
>>
>> I cloned the current git tree, created a scratch branch, made the changes
>> represented in the agent.patch file above, then ran the command
>>
>> gbp buildpackage --git-debian-branch=build-agent --git-ignore-new -us -uc
>> --git-upstream-tree=2.8.1 --git-dist=trusty
>>
>> and it created a package (I think I needed to do a couple things to
>> silence blocking errors, but it should be obvious). I did a similar thing
>> on a different branch for the server version of the debian directory
>>
>> there is some way to have one debian/ directory and have it create
>> multiple packages. the rsyslog stuff does this in
>> https://github.com/rsyslog/rsyslog-pkg-debian (look in liblognorm/trusty
>> for a simple version that does a couple packages, the rsyslog directory
>> does about a dozen packages)
>>
>> I haven't looked in detail at this, and what I've done so far is very
>> much hack and slash programming to get a result, not doing it cleanly. but
>> now that it works I can go back and start looking at how to do it cleanly
>> :-)
>>
>> I don't know how much I will get done over the weekend, but I figured I'd
>> send it to you since you are more familiar with this stuff
>>
>> docs for the gbp command:
>>
>> http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/man.gbp.buildpackage.html
>>
>> other git workflow pages
>> https://wiki.debian.org/PackagingWithGit
>> https://wiki.debian.org/GitPackagingWorkflow
>>
>> http://honk.sigxcpu.org/projects/git-buildpackage/manual-html/gbp.intro.html
>>
>> David Lang
>>
>> On Fri, 24 Apr 2015, Santiago Bassett wrote:
>>
>>  Date: Fri, 24 Apr 2015 11:12:42 -0700
>>> From: Santiago Bassett <[email protected]>
>>> To: David Lang <[email protected]>
>>> Cc: "[email protected]" <[email protected]>
>>> Subject: Re: building .deb packages
>>>
>>> Hi David,
>>>
>>> I few weeks ago I actually started working on a new version of the deb
>>> packages, fixing multiple issues including:
>>>
>>> - init scripts not being installed when packages are reinstalled or
>>> upgraded
>>> - use addgroup and adduser in postscripts to avoid gid and uid conflicts
>>> with other users.
>>> - modify ossec configuration file to monitor debian/ubuntu files like
>>> auth.log instead of authlog
>>> - errors when frontend is set to noninteractive
>>>
>>> Unfortunately I haven't had time to finish it yet, since I've been pretty
>>> busy at work, but I plan to finish them sometime in the next few days. I
>>> also created the packages for ubuntu that can be found at
>>> http://ossec.wazuh.com/ubuntu/
>>>
>>> I am now using an Ubuntu server to create all packages with pbuilder.
>>> I've
>>> never packaged directly from a git repository, didn't even know it was
>>> possible. Will definitely have a look into that.
>>>
>>> Please don't hesitate to ask for help if you have questions. I'll be
>>> sharing new deb files as soon as I have the new package version ready
>>> too.
>>>
>>> Best
>>>
>>> On Thu, Apr 23, 2015 at 6:46 PM, David Lang <[email protected]> wrote:
>>>
>>>  I'm trying to build packages for ubuntu using the instructions and
>>>> scripts
>>>> from Santiago https://github.com/santiago-bassett/ossec-debian
>>>>
>>>> After doing a few obvious tweaks to try and make them work for ubuntu
>>>> codenames instead of debian codenames, I tried to run generate_ossec.sh
>>>> and
>>>> it complained because the ossec-hids directory is a git repository, not
>>>> something that containst a source tarball.
>>>>
>>>> Has anyone put together scripts to create the packages from a git
>>>> repository?
>>>>
>>>> I'm pretty new to using the debian infrastructure to create packages.
>>>> I've
>>>> been building local packages for years using checkinstall and/or
>>>> creating
>>>> them manually (ar/cpio/etc). I just finished going through and getting a
>>>> similar setup done for rsyslog, so I've got a vauge idea of what's
>>>> going on
>>>> :-)
>>>>
>>>> David Lang
>>>>
>>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"ossec-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to