Skip to content

Commit

Permalink
debianization
Browse files Browse the repository at this point in the history
  • Loading branch information
roques committed Apr 20, 2016
1 parent 2024966 commit 9b43741
Show file tree
Hide file tree
Showing 11 changed files with 104 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitignore
@@ -0,0 +1,25 @@
.*
*.lo
*.la
Makefile*
acinclude.m4
aclocal.m4
autom4te.cache/
build/
config.guess
config.h
config.h.in
config.log
config.nice
config.status
config.sub
configure
configure.in
install-sh
libtool
ltmain.sh
missing
mkinstalldirs
modules/
run-tests.php
test.php
10 changes: 10 additions & 0 deletions README.md
Expand Up @@ -16,6 +16,16 @@ sudo make install
```
Finally add `extension=ed25519.so` to your /etc/php.ini

### Building a Debian package

You can build it as a Debian package using

```
git clone git://github.com/encedo/php-ed25519-ext.git
cd php-ed25519-ext
sudo apt-get install php5-dev dh-php5
fakeroot debian/rules binary
```

### Usage:

Expand Down
6 changes: 6 additions & 0 deletions debian/.gitignore
@@ -0,0 +1,6 @@
*.debhelper
files
php5-ed25519.debhelper.log
php5-ed25519.substvars
php5-ed25519/

6 changes: 6 additions & 0 deletions debian/changelog
@@ -0,0 +1,6 @@
php5-ed25519 (0.1.0-1) unstable; urgency=low

* Initial Release

-- Christian von Roques <roques@mti.ag> Fri, 18 Mar 2016 17:39:31 -0400

1 change: 1 addition & 0 deletions debian/compat
@@ -0,0 +1 @@
9
14 changes: 14 additions & 0 deletions debian/control
@@ -0,0 +1,14 @@
Source: php5-ed25519
Section: php
Priority: optional
Maintainer: Christian von Roques <roques@stupid.mti.ag>
Build-Depends: debhelper (>= 9), php5-dev (>= 5.4.1), dh-php5
Standards-Version: 3.9.6
VCS-Git: git://github.com/encedo/php-ed25519-ext.git


Package: php5-ed25519
Architecture: any
Depends: ${shlibs:Depends}, ${php:Depends}, ${misc:Depends}
Description: ed25519 module for PHP 5
This extension allows creating and verification ed25519 signatures.
20 changes: 20 additions & 0 deletions debian/copyright
@@ -0,0 +1,20 @@
This package was debianized by Christian von Roques <roques@mti.ag>
on Fri, 18 Mar 2016 17:39:31 -0400.

It was cloned from git://github.com/encedo/php-ed25519-ext.git

Upstream Author(s):

Krzysztof Rutecki <encedo@users.noreply.github.com>

Copyright:

Copyright (C) 2015 Krzysztof Rutecki

License:

PHP

The Debian packaging was made by, Christian von Roques <roques@mti.ag> and
placed in the Public Domain.

1 change: 1 addition & 0 deletions debian/docs
@@ -0,0 +1 @@
README.md
3 changes: 3 additions & 0 deletions debian/ed25519.ini
@@ -0,0 +1,3 @@
; configuration for php ed25519 module
; priority=20
extension=ed25519.so
2 changes: 2 additions & 0 deletions debian/php5-ed25519.php5
@@ -0,0 +1,2 @@
mod debian/ed25519.ini
mod modules/ed25519.so
16 changes: 16 additions & 0 deletions debian/rules
@@ -0,0 +1,16 @@
#!/usr/bin/make -f
export DH_VERBOSE=1

%:
dh $@ --with php5

override_dh_auto_configure:
phpize
dh_auto_configure

override_dh_auto_install:
make -j1 install INSTALL_ROOT=debian/php5-ed25519

override_dh_auto_clean:
dh_auto_clean
phpize --clean

0 comments on commit 9b43741

Please sign in to comment.