2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-05-18 12:17:17 +00:00

Merge pull request #57 from VersatusHPC/fix/ubuntu-deb-packaging

feat: ubuntu packaging
This commit is contained in:
Markus Hilger
2026-05-11 15:39:52 +02:00
committed by GitHub
24 changed files with 110 additions and 7 deletions
+7
View File
@@ -0,0 +1,7 @@
goconserver (0.3.3-1) unstable; urgency=medium
* Build v0.3.3 from source for xCAT
* Remove RC4 and 3DES ciphers from TLS configuration
* Remove etcd storage backend (incompatible with modern Go modules)
-- Vinicius Ferrao <ferrao@versatushpc.com.br> Sat, 10 May 2025 13:43:11 -0300
+1
View File
@@ -0,0 +1 @@
13
+14
View File
@@ -0,0 +1,14 @@
Source: goconserver
Section: admin
Priority: optional
Maintainer: xCAT <xcat-user@lists.sourceforge.net>
Build-Depends: debhelper (>= 13), golang
Standards-Version: 4.6.0
Homepage: https://github.com/xcat2/goconserver
Package: goconserver
Architecture: any
Depends: ${misc:Depends}
Description: Console server written in Go for xCAT
goconserver is a scalable console server written in Go. It provides
console logging and management for xCAT cluster nodes.
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/make -f
export CGO_ENABLED=0
%:
dh $@
override_dh_auto_configure:
override_dh_auto_build:
go build -ldflags "-X main.Version=0.3.3" -o goconserver goconserver.go
go build -ldflags "-X main.Version=0.3.3" -o congo cmd/congo.go
override_dh_auto_install:
install -D -m 755 goconserver $(CURDIR)/debian/goconserver/usr/bin/goconserver
install -D -m 755 congo $(CURDIR)/debian/goconserver/usr/bin/congo
install -D -m 644 etc/goconserver/server.conf $(CURDIR)/debian/goconserver/etc/goconserver/server.conf
mkdir -p $(CURDIR)/debian/goconserver/var/log/goconserver
override_dh_auto_test:
override_dh_auto_clean:
rm -f goconserver congo
override_dh_dwz:
override_dh_strip:
+1
View File
@@ -0,0 +1 @@
3.0 (native)
+34
View File
@@ -0,0 +1,34 @@
#!/bin/bash
set -e
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
VERSION=0.3.3
REPO=https://github.com/xcat2/goconserver.git
REF=master
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" EXIT
echo "Cloning goconserver..."
git clone --depth 1 --branch "$REF" "$REPO" "$WORKDIR/goconserver-$VERSION"
cd "$WORKDIR/goconserver-$VERSION"
# etcd storage backend has broken deps with modern Go modules
rm -rf storage/etcd.go storage/etcd/
export GOPATH="$WORKDIR/gopath"
export GOCACHE="$WORKDIR/gocache"
export GOMODCACHE="$WORKDIR/gomodcache"
export CGO_ENABLED=0
go mod init github.com/xcat2/goconserver
go mod tidy
cp -rL "$SCRIPT_DIR/debian" .
dpkg-buildpackage -uc -us
echo "Built debs:"
ls "$WORKDIR"/*.deb
cp "$WORKDIR"/*.deb "$SCRIPT_DIR/../"
+1 -1
View File
@@ -1 +1 @@
5
13
+1 -1
View File
@@ -7,7 +7,7 @@ Standards-Version: 3.6.2.1
Package: ipmitool-xcat
Architecture: i386 amd64 ia64 ppc64el
Depends: libc6 (>= 2.15), libssl1.1 (>= 1.1.0) | libssl1.0.0 (>=1.0.0), lsb-base
Depends: libc6 (>= 2.15), libssl3 | libssl1.1 (>= 1.1.0) | libssl1.0.0 (>=1.0.0), lsb-base
Suggests: openipmi
Description: utility for IPMI control with kernel driver or LAN interface
A utility for managing and configuring devices that support the
@@ -0,0 +1 @@
../../0001-CVE-2011-4339-OpenIPMI.patch
@@ -0,0 +1 @@
../../0003-ipmitool-1.8.11-set-kg-key.patch
+1
View File
@@ -0,0 +1 @@
../../0004-slowswid.patch
+1
View File
@@ -0,0 +1 @@
../../0005-sensor-id-length.patch
+1
View File
@@ -0,0 +1 @@
../../0006-enable-usb.patch
+1
View File
@@ -0,0 +1 @@
../../0007-check-input.patch
+1
View File
@@ -0,0 +1 @@
../../0008-add-extern.patch
+1
View File
@@ -0,0 +1 @@
../../0009-best-cipher.patch
@@ -0,0 +1 @@
../../0010-pef-missing-newline.patch
@@ -0,0 +1 @@
../../0011-expand-sensor-name-column.patch
@@ -0,0 +1 @@
../../0013-quanta-oem-support.patch
@@ -0,0 +1 @@
../../0014-lanplus-cipher-retry.patch
@@ -0,0 +1 @@
../../0015-lanplus-Cleanup.-Refix-6dec83ff-fix-be2c0c4b.patch
@@ -0,0 +1 @@
../../0016-el10-gcc14-missing-intf-getters.patch
+16 -2
View File
@@ -1,5 +1,19 @@
0001-CVE-2011-4339-OpenIPMI.patch
0002-openssl.patch
0003-ipmitool-1.8.11-set-kg-key.patch
0004-slowswid.patch
0005-sensor-id-length.patch
0006-enable-usb.patch
0007-check-input.patch
0008-add-extern.patch
0009-best-cipher.patch
0010-pef-missing-newline.patch
0011-expand-sensor-name-column.patch
0012-CVE-2020-5208.patch
0013-quanta-oem-support.patch
0014-lanplus-cipher-retry.patch
0015-lanplus-Cleanup.-Refix-6dec83ff-fix-be2c0c4b.patch
0016-el10-gcc14-missing-intf-getters.patch
ipmitool-1.8.18-saneretry.patch
ipmitool-1.8.18-rflash.patch
ipmitool-1.8.18-signal.patch
0002-openssl.patch
0012-CVE-2020-5208.patch
+3 -3
View File
@@ -21,7 +21,7 @@ endif
configure: configure-stamp
configure-stamp:
dh_testdir
dh --with quilt build
dh build --with quilt
ifneq ($(TARGET_ARCH),ppc64el)
./configure --prefix=/usr \
@@ -65,7 +65,7 @@ install: install-arch #install-indep
install-indep:
dh_testdir
dh_testroot
dh_clean -k -i
dh_prep -i
dh_installdirs -i
# Add here commands to install the indep part of the package into
@@ -77,7 +77,7 @@ install-indep:
install-arch:
dh_testdir
dh_testroot
dh_clean -k -a
dh_prep -a
dh_installdirs -a
# Add here commands to install the arch part of the package into