Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d57870a

Browse files
committed
Add simple script for build debian package
1 parent 811dec0 commit d57870a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

master/debian/DEBIAN/control

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Source: postgresql-9.5-pathman
2+
Package: postgresql-9.5-pathman
3+
Version: 1.0
4+
Section: database
5+
Priority: optional
6+
Maintainer: Postgres Professional <dba@postrespro.ru>
7+
Architecture: amd64
8+
Build-Depends: postgresql-common, gcc
9+
Description: The pg_pathman module provides optimized partitioning mechanism and functions to manage partitions.

master/debian/mkpkg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh -e
2+
3+
PKGNAME=postgresql-9.5-pathman
4+
5+
git clone --branch master --depth 1 https://github.com/postgrespro/pg_pathman pg_pathman
6+
cd pg_pathman
7+
8+
mkdir $PKGNAME
9+
10+
USE_PGXS=1 make
11+
USE_PGXS=1 make DESTDIR=$PKGNAME install
12+
cp -r ../DEBIAN $PKGNAME
13+
fakeroot dpkg-deb --build $PKGNAME
14+
mv $PKGNAME.deb ..

0 commit comments

Comments
 (0)