carbon-c-relay icon indicating copy to clipboard operation
carbon-c-relay copied to clipboard

how make deb package

Open artb1sh opened this issue 3 years ago • 3 comments

Hello. make is not create deb package How can i build package for debian? I need 3.7.2 version of your program. Can you help me

artb1sh avatar Jul 08 '21 19:07 artb1sh

I've no idea how debian builds packages

grobian avatar Jul 09 '21 11:07 grobian

@artb1sh : IIRC carbon-c-relay already included in debian repos - https://packages.debian.org/sid/carbon-c-relay

deniszh avatar Jul 09 '21 14:07 deniszh

We use FPM to build Debs of carbon-c-relay for the particular distro and version that we use. This does not have anywhere near all of the pieces that you need (systemd unit file, for example), but it slots in well with our chef infrastructure.

recipe.rb

VERSION='3.7.4'

class GoCarbon < FPM::Cookery::Recipe
  homepage    'https://https://github.com/grobian/carbon-c-relay'
  name        'carbon-c-relay'
  version     VERSION
  description 'carbon-go-relay'
  maintainer  'James Blackwell <[email protected]>'
  source      'https://github.com/grobian/carbon-c-relay.git', with: :git, tag: "v#{VERSION}"


  post_install 'post_install'

  def build
    safesystem 'chmod +x configure'
    safesystem './configure'
    safesystem 'make'
  end

  def install
    safesystem "chmod +x relay"
    bin.install "relay"
  end
end

post_install

#!/bin/sh

chmod +x /usr/bin/relay

if [ "$upgrade" = "true" ]; then
  echo ""
  echo "carbon-c-relay does NOT restart start automatically!"
  echo ""
fi

exit 0

jdblack avatar May 26 '22 21:05 jdblack

I think building deb or rpm packages is out of the scope of this project

grobian avatar Aug 21 '22 08:08 grobian