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

+9
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 <[email protected]>
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

+14
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://.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)