diff --git a/.gitignore b/.gitignore index a7143c6..cc66a97 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ /build/ +/dist/ *.d *.o /strfry diff --git a/pkg/build.pl b/pkg/build.pl new file mode 100644 index 0000000..1612795 --- /dev/null +++ b/pkg/build.pl @@ -0,0 +1,37 @@ +#!/usr/bin/env perl + +use strict; + +use lib 'golpe/'; +use BuildLib; + + +my $version = `git describe --tags 2>/dev/null` || die "couldn't get version"; + + +BuildLib::fpm({ + types => [qw/ deb /], + name => 'strfry', + version => $version, + description => 'strfry', + files => { + 'strfry' => '/usr/local/bin/strfry', + 'strfry.conf' => '/etc/strfry.conf', + }, + dirs => { + }, + config_files => [ + '/etc/strfry.conf', + ], + #postinst => 'pkg/scripts/postinst', + # ssl dev pkg so we don't hard-code openssl ABI version (works with multiple) + deps => [qw/ + zlib1g + libssl-dev + liblmdb0 + libflatbuffers1 + libsecp256k1-0 + libzstd1 + systemd-coredump + /], +});