Coder Social home page Coder Social logo

fpm-pg-extension-package-generate-demo's Introduction

use fpm to build rpm && deb pacakge

how to running

  • install fpm
sudo gem install --no-ri --no-rdoc fpm
  • rpm pacakge build
fpm  -s dir -t rpm  -n myplgo-extension ./example--0.1.sql=/usr/pgsql-10/share/extension/  ./example.control=/usr/pgsql-10/share/extension/ ./example.so=/usr/pgsql-10/lib/

check rpm package contents

rpm2cpio myplgo-extension-1.0-1.x86_64.rpm | cpio -t

./usr/pgsql-10/lib/example.so
./usr/pgsql-10/share/extension/example--0.1.sql
./usr/pgsql-10/share/extension/example.control
  • deb pacakge build
fpm  -s dir -t deb  -n myplgo-extension ./example--0.1.sql=/usr/pgsql-10/share/extension/  ./example.control=/usr/pgsql-10/share/extension/ ./example.so=/usr/pgsql-10/lib/

check deb package contens

dpkg -c myplgo-extension_1.0_amd64.deb

drwxr-xr-x 0/0               0 2019-04-09 13:08 ./
drwxr-xr-x 0/0               0 2019-04-09 13:08 ./usr/
drwxr-xr-x 0/0               0 2019-04-09 13:08 ./usr/pgsql-10/
drwxr-xr-x 0/0               0 2019-04-09 13:08 ./usr/pgsql-10/lib/
-rw-r--r-- 0/0         3316752 2019-04-09 11:39 ./usr/pgsql-10/lib/example.so
drwxr-xr-x 0/0               0 2019-04-09 13:08 ./usr/pgsql-10/share/
drwxr-xr-x 0/0               0 2019-04-09 13:08 ./usr/pgsql-10/share/extension/
-rw-r--r-- 0/0            1005 2019-04-09 11:39 ./usr/pgsql-10/share/extension/example--0.1.sql
-rw-r--r-- 0/0              92 2019-04-09 11:39 ./usr/pgsql-10/share/extension/example.control
drwxr-xr-x 0/0               0 2019-04-09 13:08 ./usr/share/
drwxr-xr-x 0/0               0 2019-04-09 13:08 ./usr/share/doc/
drwxr-xr-x 0/0               0 2019-04-09 13:08 ./usr/share/doc/myplgo-extension/
-rw-r--r-- 0/0             142 2019-04-09 13:08 ./usr/share/doc/myplgo-extension/changelog.gz

fpm-pg-extension-package-generate-demo's People

Contributors

rongfengliang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.