Skip to content

Commit

Permalink
Add debian directory for building .deb
Browse files Browse the repository at this point in the history
  • Loading branch information
mastersin committed Mar 29, 2024
1 parent d271ab7 commit 04152d1
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 0 deletions.
7 changes: 7 additions & 0 deletions debian/README.Debian
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Build Sisyphus package on Debian
--------------------------------

Building with git-buildpackage on Debian may be in same manner as with gear
utility on ALT Linux Sisyphus (upstream tag using to autopackage origin sources):

$ gbp buildpackage --git-ignore-branch --git-ignore-new --git-no-sign-tags --git-upstream-tag=v0.2.2
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
oddjob-gpupdate (0.2.2-1) unstable; urgency=low

* Initial build.

-- Evgeny Sinelnikov <[email protected]> Sat, 30 Mar 2024 01:20:00 +0400
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9
15 changes: 15 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Source: oddjob-gpupdate
Section: admin
Priority: optional
Maintainer: Evgeny Sinelnikov <[email protected]>
Build-Depends: debhelper (>=9)
Standards-Version: 4.1.3
Homepage: https://github.com/altlinux/oddjob-gpupdate

Package: oddjob-gpupdate
Architecture: any
Multi-Arch: foreign
Depends: ${shlibs:Depends}, ${misc:Depends}, oddjob
Description: An oddjob helper which applies group policy objects
This package contains the oddjob helper which can be used by the
pam_oddjob_gpupdate module to applies group policy objects at login-time.
16 changes: 16 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: oddjob-gpupdate
Upstream-Contact: ALT Linux Team development <[email protected]>
Source: https://github.com/altlinux/oddjob-gpupdate

Files: *
Copyright: 2005-2015 Red Hat, Inc.
License: BSD-3-clause

Files: src/buffer.h
Copyright: 2005 Red Hat, Inc.
License: LGPL-2+

Files: src/gpupdate.c src/pam_oddjob_gpupdate.c
Copyright: 2019, BaseALT, Ltd.
License: BSD-3-clause
7 changes: 7 additions & 0 deletions debian/install
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
etc/dbus-1/system.d/oddjob-gpupdate.conf
etc/oddjobd.conf.d/oddjobd-gpupdate.conf
lib/*/security/pam_oddjob_gpupdate.so
usr/lib/oddjob/gpupdate
usr/share/man/man5/oddjob-gpupdate.conf.5
usr/share/man/man5/oddjobd-gpupdate.conf.5
usr/share/man/man8/pam_oddjob_gpupdate.8
24 changes: 24 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/make -f
#export DH_VERBOSE = 1

DESTDIR=debian/buildroot

%:
dh $@ --tmpdir=$(DESTDIR)

override_dh_auto_configure:
./autogen
dh_auto_configure -- \
--disable-static \
--enable-pie \
--enable-now \
--with-selinux-acls \
--with-selinux-labels

override_dh_install:
# purge .la files
find $(CURDIR)/$(DESTDIR) -name "*.la" -type f -exec rm -f "{}" \;
# move pam module to correct location
mkdir -p $(CURDIR)/$(DESTDIR)/lib/${DEB_HOST_MULTIARCH}
mv $(CURDIR)/$(DESTDIR)/usr/lib/${DEB_HOST_MULTIARCH}/security \
$(CURDIR)/$(DESTDIR)/lib/${DEB_HOST_MULTIARCH}/

0 comments on commit 04152d1

Please sign in to comment.