Skip to content

Commit

Permalink
Added service file install
Browse files Browse the repository at this point in the history
  • Loading branch information
DreamingRaven committed Jan 29, 2025
1 parent f317820 commit 077526d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rapid7-insight-agent-bin/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = rapid7-insight-agent-bin
pkgdesc = rapid7-insight-agent binary
pkgver = 4.0.8.28
pkgrel = 1
pkgrel = 2
url = https://www.rapid7.com/
arch = x86_64
arch = aarch64
Expand All @@ -10,7 +10,7 @@ pkgbase = rapid7-insight-agent-bin
makedepends = tar
provides = rapid7-insight-agent
conflicts = rapid7-insight-agent
source = manual://rapid7-insight-agent_4.0.8.28-1_amd64.deb
source = rapid7-insight-agent_4.0.8.28-1_amd64.deb
b2sums = 87289b839d5e822823ad36b09c19791c188556edcb1fc3ee95e0815cd50f5d0b26f4f7a38de7b0e7add2cff952f940b3fda009e3707d095ab2efe47a3ceecbfb

pkgname = rapid7-insight-agent-bin
5 changes: 3 additions & 2 deletions rapid7-insight-agent-bin/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ _name=rapid7-insight-agent
pkgname=${_name}-bin
pkgdesc="rapid7-insight-agent binary"
pkgver=4.0.8.28
pkgrel=1
pkgrel=2
arch=('x86_64' 'aarch64')
url="https://www.rapid7.com/"
license=('custom')
Expand Down Expand Up @@ -33,7 +33,7 @@ _file="${_name}_${pkgver}-1_${_pkgarch}.deb"
# The deb file should be self-sourced as it can't be distributed
# it should look something like: rapid7-insight-agent_4.0.8.28-1_amd64.deb
# https://docs.rapid7.com/insight-agent/linux-installation/
source+=("manual://${_file}")
source+=("${_file}")


# unpack deb file and data.tar.gz to extract opt/rapid7
Expand All @@ -47,4 +47,5 @@ package() {
cd "${srcdir}"
mkdir -p ${pkgdir}/opt
cp -r ${srcdir}/opt/rapid7 ${pkgdir}/opt/.
install -D -m0644 ${srcdir}/opt/rapid7/ir_agent/components/insight_agent/${pkgver}/ir_agent.service ${pkgdir}/usr/lib/systemd/system/ir_agent.service
}

0 comments on commit 077526d

Please sign in to comment.