Package Details: php-systemd 0.1.2-5

Git Clone URL: https://aur.archlinux.org/php-systemd.git (read-only, click to copy)
Package Base: php-systemd
Description: PHP extension allowing native interaction with systemd and its journal
Upstream URL: https://github.com/systemd/php-systemd
Keywords: journald php systemd
Licenses: MIT
Submitter: NiNjA
Maintainer: Thaodan
Last Packager: Thaodan
Votes: 4
Popularity: 0.000000
First Submitted: 2016-01-21 19:04
Last Updated: 2021-03-27 18:33

Latest Comments

Thaodan commented on 2021-03-27 17:37

@marcool04: Care to upstream that fix?

marcool04 commented on 2021-02-26 22:37

In order to make this work with php8, I had to add this:

sed -ie 's/ZEND_NUM_ARGS() TSRMLS_CC/ZEND_NUM_ARGS()/' systemd.c

under the patch lines in the build() function. See first part of answer 1 here

muhviehstarr commented on 2021-02-20 12:30

fix build for php8

Maintainer: Heine Pedersen <heinep at gmail dot com>

pkgname=php-systemd pkgver=0.1.2 ~ pkgrel=5

pkgdesc="PHP extension allowing native interaction with systemd and its journal" arch=("any") url="https://github.com/systemd/php-systemd" license=("MIT") makedepends=("php") depends=("libsystemd") backup=("etc/php/conf.d/systemd.ini")

~ source=("https://github.com/systemd/php-systemd/archive/master.zip" "php7-support.patch" "fix-systemd-include-path.patch" "fix-file-macro.patch" "systemd.ini")

~ sha512sums=('f55a893e40ff9a3fc37499783070bf80ce6ae348b848befca2bd011b54b9201d58a5ce8d0289cc3d14290fd43407a2bdd516bc8c162a17c8166d9b39feeb70bf' ~ '550f8068e5d0ea0f7af40164f8fc19ccf0453ec2ac07aa32d9ea09786888cb86c0b42c10258b3c7ebed80cdb3cac447e1a1e80a0407f59d68932cd454ed6cf10' ~ '9c83e357e5ff160120d004c2abe8c9f4c34043a3f2962d55a4801f79fc14e06b023f3af793d89b43a201164fbe96c74c8dcfd427f40201fe44acb232b2d77271' ~ '67c275c76a478792ea1c68a908ef81a6ef72da9d7b1dd7f9c382d9f5cc672b47f5d48ab288a064f73831e90fc4d91adfb23d86b70ded61073cfa3fa2338a9dca' ~ '86155fd1ea7eec8e6d1dfb292633c7731df1180bbb9988bb409a9bc0316fb597f5398e6956788bb3fb9bad15612fceef7742b877af0996e4c255d2952628b3e4')

build() { + mv -v ${srcdir}/php-systemd-master ${srcdir}/${pkgname}-release-${pkgver} cd ${srcdir}/${pkgname}-release-${pkgver} ~ # patch -p0 < ../fix-systemd-include-path.patch ~ # patch -p0 < ../php7-support.patch ~ # patch -p0 < ../fix-file-macro.patch phpize ./configure --prefix=/usr --with-systemd make }

  • check() {
  • cd ${srcdir}/${pkgname}-release-${pkgver}
  • make test
  • } + + package() { cd ${srcdir}/${pkgname}-release-${pkgver} install -Dm644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.md install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt install -Dm644 ${srcdir}/systemd.ini ${pkgdir}/etc/php/conf.d/systemd.ini install -Dm644 modules/systemd.so ${pkgdir}/usr/lib/php/modules/systemd.so }

# vim:set ts=2 sw=2 et:

mqs commented on 2021-01-29 16:27

@Thaodan thank you very much for the diff! There are some copy'n paste errors in it though, you seem to have copied it multiple times, look also for the ...skipping... between the segments

Thaodan commented on 2021-01-29 11:56

diff --git a/PKGBUILD b/PKGBUILD
index 7b7bb46..cb2f1e4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
 # Maintainer: Heine Pedersen <heinep at gmail dot com>

-pkgname=php-systemd
+_pkgname=php-systemd
+pkgname=php7-systemd
 pkgver=0.1.2
 pkgrel=4

@@ -8,8 +9,9 @@ pkgdesc="PHP extension allowing native interaction with systemd and its journal"
 arch=("any")
 url="https://github.com/systemd/php-systemd"
 license=("MIT")
-makedepends=("php")
-depends=("libsystemd")
+makedepends=("php7"
+             "systemd")
+depends=("systemd-libs")
 backup=("etc/php/conf.d/systemd.ini")

 source=("https://github.com/systemd/php-systemd/archive/release-${pkgver}.zip" 
@@ -17,25 +19,25 @@ source=("https://github.com/systemd/php-systemd/archive/release-${pkgver}.zip"
         "fix-systemd-include-path.patch"
         "fix-file-macro.patch"
         "systemd.ini")
+sha512sums=('c2d8ec02b49630ebf51106f6113674b4bed130ae92a1e87b9349f90f28fa3b5f435efd5e4f86e76265aa27b5ef864ef0100f20b8a2e9b7f65c5612a35948b9c7'
+            '550f8068e5d0ea0f7af40164f8fc19ccf0453ec2ac07aa32d9ea09786888cb86c0b42c10258b3c7ebed80cdb3cac447e1a1e80a0407f59d68932cd454ed6cf10'
+            '9c83e357e5ff160120d004c2abe8c9f4c34043a3f2962d55a4801f79fc14e06b023f3af793d89b43a201164fbe96c74c8dcfd427f40201fe44acb232b2d77271'
+            '67c275c76a478792ea1c68a908ef81a6ef72da9d7b1dd7f9c382d9f5cc672b47f5d48ab288a064f73831e90fc4d91adfb23d86b70ded61073cfa3fa2338a9dca'
+            '86155fd1ea7eec8e6d1dfb292633c7731df1180bbb9988bb409a9bc0316fb597f5398e6956788bb3fb9bad15612fceef7742b877af0996e4c255d2952628b3e4')

-sha512sums=("c2d8ec02b49630ebf51106f6113674b4bed130ae92a1e87b9349f90f28fa3b5f435efd5e4f86e76265aa27b5ef864ef0100f20b8a2e9b7f65c5612a35948b9c7"
-            "550f8068e5d0ea0f7af40164f8fc19ccf0453ec2ac07aa32d9ea09786888cb86c0b42c10258b3c7ebed80cdb3cac447e1a1e80a0407f59d68932cd454ed6cf10"
-            "9c83e357e5ff160120d004c2abe8c9f4c34043a3f2962d55a4801f79fc14e06b023f3af793d89b43a201164fbe96c74c8dcfd427f40201fe44acb232b2d77271"
-            "67c275c76a478792ea1c68a908ef81a6ef72da9d7b1dd7f9c382d9f5cc672b47f5d48ab288a064f73831e90fc4d91adfb23d86b70ded61073cfa3fa2338a9dca"
-            "86155fd1ea7eec8e6d1dfb292633c7731df1180bbb9988bb409a9bc0316fb597f5398e6956788bb3fb9bad15612fceef7742b877af0996e4c255d2952628b3e4")

 build() {
-  cd ${srcdir}/${pkgname}-release-${pkgver}
+  cd ${srcdir}/${_pkgname}-release-${pkgver}
   patch -p0 < ../fix-systemd-include-path.patch
   patch -p0 < ../php7-support.patch
   patch -p0 < ../fix-file-macro.patch
-  phpize
+  phpize7
   ./configure --prefix=/usr --with-systemd
   make
 }

 package() {
-  cd ${srcdir}/${pkgname}-release-${pkgver}
+  cd ${srcdir}/${_pkgname}-release-${pkgver}
   install -Dm644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.md
   install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt
   install -Dm644 ${srcdir}/systemd.ini ${pkgdir}/etc/php/conf.d/systemd.ini
...skipping...
 license=("MIT")
-makedepends=("php")
-depends=("libsystemd")
+makedepends=("php7"
+             "systemd")
+depends=("systemd-libs")
 backup=("etc/php/conf.d/systemd.ini")

 source=("https://github.com/systemd/php-systemd/archive/release-${pkgver}.zip" 
@@ -17,25 +19,25 @@ source=("https://github.com/systemd/php-systemd/archive/release-${pkgver}.zip"
         "fix-systemd-include-path.patch"
         "fix-file-macro.patch"
         "systemd.ini")
+sha512sums=('c2d8ec02b49630ebf51106f6113674b4bed130ae92a1e87b9349f90f28fa3b5f435efd5e4f86e76265aa27b5ef864ef0100f20b8a2e9b7f65c5612a35948b9c7'
+            '550f8068e5d0ea0f7af40164f8fc19ccf0453ec2ac07aa32d9ea09786888cb86c0b42c10258b3c7ebed80cdb3cac447e1a1e80a0407f59d68932cd454ed6cf10'
+            '9c83e357e5ff160120d004c2abe8c9f4c34043a3f2962d55a4801f79fc14e06b023f3af793d89b43a201164fbe96c74c8dcfd427f40201fe44acb232b2d77271'
+            '67c275c76a478792ea1c68a908ef81a6ef72da9d7b1dd7f9c382d9f5cc672b47f5d48ab288a064f73831e90fc4d91adfb23d86b70ded61073cfa3fa2338a9dca'
+            '86155fd1ea7eec8e6d1dfb292633c7731df1180bbb9988bb409a9bc0316fb597f5398e6956788bb3fb9bad15612fceef7742b877af0996e4c255d2952628b3e4')

-sha512sums=("c2d8ec02b49630ebf51106f6113674b4bed130ae92a1e87b9349f90f28fa3b5f435efd5e4f86e76265aa27b5ef864ef0100f20b8a2e9b7f65c5612a35948b9c7"
-            "550f8068e5d0ea0f7af40164f8fc19ccf0453ec2ac07aa32d9ea09786888cb86c0b42c10258b3c7ebed80cdb3cac447e1a1e80a0407f59d68932cd454ed6cf10"
-            "9c83e357e5ff160120d004c2abe8c9f4c34043a3f2962d55a4801f79fc14e06b023f3af793d89b43a201164fbe96c74c8dcfd427f40201fe44acb232b2d77271"
-            "67c275c76a478792ea1c68a908ef81a6ef72da9d7b1dd7f9c382d9f5cc672b47f5d48ab288a064f73831e90fc4d91adfb23d86b70ded61073cfa3fa2338a9dca"
-            "86155fd1ea7eec8e6d1dfb292633c7731df1180bbb9988bb409a9bc0316fb597f5398e6956788bb3fb9bad15612fceef7742b877af0996e4c255d2952628b3e4")

 build() {
-  cd ${srcdir}/${pkgname}-release-${pkgver}
+  cd ${srcdir}/${_pkgname}-release-${pkgver}
   patch -p0 < ../fix-systemd-include-path.patch
   patch -p0 < ../php7-support.patch
   patch -p0 < ../fix-file-macro.patch
-  phpize
+  phpize7
   ./configure --prefix=/usr --with-systemd
   make
 }

 package() {
-  cd ${srcdir}/${pkgname}-release-${pkgver}
+  cd ${srcdir}/${_pkgname}-release-${pkgver}
   install -Dm644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.md
   install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt
   install -Dm644 ${srcdir}/systemd.ini ${pkgdir}/etc/php/conf.d/systemd.ini
...skipping...
 license=("MIT")
-makedepends=("php")
-depends=("libsystemd")
+makedepends=("php7"
+             "systemd")
+depends=("systemd-libs")
 backup=("etc/php/conf.d/systemd.ini")

 source=("https://github.com/systemd/php-systemd/archive/release-${pkgver}.zip" 
@@ -17,25 +19,25 @@ source=("https://github.com/systemd/php-systemd/archive/release-${pkgver}.zip"
         "fix-systemd-include-path.patch"
         "fix-file-macro.patch"
         "systemd.ini")
+sha512sums=('c2d8ec02b49630ebf51106f6113674b4bed130ae92a1e87b9349f90f28fa3b5f435efd5e4f86e76265aa27b5ef864ef0100f20b8a2e9b7f65c5612a35948b9c7'
+            '550f8068e5d0ea0f7af40164f8fc19ccf0453ec2ac07aa32d9ea09786888cb86c0b42c10258b3c7ebed80cdb3cac447e1a1e80a0407f59d68932cd454ed6cf10'
+            '9c83e357e5ff160120d004c2abe8c9f4c34043a3f2962d55a4801f79fc14e06b023f3af793d89b43a201164fbe96c74c8dcfd427f40201fe44acb232b2d77271'
+            '67c275c76a478792ea1c68a908ef81a6ef72da9d7b1dd7f9c382d9f5cc672b47f5d48ab288a064f73831e90fc4d91adfb23d86b70ded61073cfa3fa2338a9dca'
+            '86155fd1ea7eec8e6d1dfb292633c7731df1180bbb9988bb409a9bc0316fb597f5398e6956788bb3fb9bad15612fceef7742b877af0996e4c255d2952628b3e4')

-sha512sums=("c2d8ec02b49630ebf51106f6113674b4bed130ae92a1e87b9349f90f28fa3b5f435efd5e4f86e76265aa27b5ef864ef0100f20b8a2e9b7f65c5612a35948b9c7"
-            "550f8068e5d0ea0f7af40164f8fc19ccf0453ec2ac07aa32d9ea09786888cb86c0b42c10258b3c7ebed80cdb3cac447e1a1e80a0407f59d68932cd454ed6cf10"
-            "9c83e357e5ff160120d004c2abe8c9f4c34043a3f2962d55a4801f79fc14e06b023f3af793d89b43a201164fbe96c74c8dcfd427f40201fe44acb232b2d77271"
-            "67c275c76a478792ea1c68a908ef81a6ef72da9d7b1dd7f9c382d9f5cc672b47f5d48ab288a064f73831e90fc4d91adfb23d86b70ded61073cfa3fa2338a9dca"
-            "86155fd1ea7eec8e6d1dfb292633c7731df1180bbb9988bb409a9bc0316fb597f5398e6956788bb3fb9bad15612fceef7742b877af0996e4c255d2952628b3e4")

 build() {
-  cd ${srcdir}/${pkgname}-release-${pkgver}
+  cd ${srcdir}/${_pkgname}-release-${pkgver}
   patch -p0 < ../fix-systemd-include-path.patch
   patch -p0 < ../php7-support.patch
   patch -p0 < ../fix-file-macro.patch
-  phpize
+  phpize7
   ./configure --prefix=/usr --with-systemd
   make
 }

 package() {
-  cd ${srcdir}/${pkgname}-release-${pkgver}
+  cd ${srcdir}/${_pkgname}-release-${pkgver}
   install -Dm644 README.md ${pkgdir}/usr/share/doc/${pkgname}/README.md
   install -Dm644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt
-  install -Dm644 ${srcdir}/systemd.ini ${pkgdir}/etc/php/conf.d/systemd.ini
-  install -Dm644 modules/systemd.so ${pkgdir}/usr/lib/php/modules/systemd.so
+  install -Dm644 ${srcdir}/systemd.ini ${pkgdir}/etc/php7/conf.d/systemd.ini
+  install -Dm644 modules/systemd.so ${pkgdir}/usr/lib/php7/modules/systemd.so

Thaodan commented on 2021-01-29 11:54

libsystemd was renamed to systemd-libs and systemd is needed as makedependency. Also this package should have the php7 prefix as this php7 only.

marcthe12 commented on 2020-07-18 12:32

Add libsystemd as dependecy