main/ez-ipupdate: fix build, split files

This commit is contained in:
psykose 2023-04-19 23:04:22 +00:00
parent 83b183a8da
commit 31c095572d
2 changed files with 42 additions and 3 deletions
main/ez-ipupdate

View file

@ -2,7 +2,7 @@
# Maintainer: Jeremy Thomerson <jeremy@thomersonfamily.com>
pkgname=ez-ipupdate
pkgver=3.0.10
pkgrel=12
pkgrel=13
pkgdesc="utility for updating your host name for many of the dynamic DNS services (ez-ip.net, dyndns.org, etc)"
url="http://ez-ipupdate.com/"
arch="all"
@ -10,12 +10,22 @@ license="GPL-2.0-or-later"
pkgusers="ipupdate"
pkggroups="ipupdate"
install="$pkgname.pre-install"
makedepends="autoconf"
subpackages="$pkgname-openrc"
source="https://dev.alpinelinux.org/archive/ez-ipupdate/ez-ipupdate-$pkgver.tar.gz
ez-ipupdate.confd
ez-ipupdate.initd
errno.patch
implicit.patch
"
prepare() {
default_prepare
autoconf
update_config_sub
}
build() {
./configure \
--build=$CBUILD \
@ -35,7 +45,10 @@ package() {
install -d -o ipupdate -g ipupdate "$pkgdir"/var/lib/$pkgname
}
sha512sums="dfcbdb2f6a53c3781c31d04269e36819b6bcdb53dfcf065f66c36de310420da7c7dc107a18bc8c7d75cfe1e2964bc9a1e3289502295ad386eee12e8a83a6b388 ez-ipupdate-3.0.10.tar.gz
sha512sums="
dfcbdb2f6a53c3781c31d04269e36819b6bcdb53dfcf065f66c36de310420da7c7dc107a18bc8c7d75cfe1e2964bc9a1e3289502295ad386eee12e8a83a6b388 ez-ipupdate-3.0.10.tar.gz
510f7c6cfb6b9c08ecf8940d80ef7ec46acbbd57c0deed7304348e91616affa3381429118aa1e7d5315d61478e54c70599eed2e414cbc75b7df2b8f276648452 ez-ipupdate.confd
6c7514b91b82e34a489f173e225b04463e33bbdc58d13828c1daef159d4121f57d53e28b54799eb27935c39305507314de480368904e52702ace04cabf631013 ez-ipupdate.initd
906f25047ae422beeb80b07af07e8516c97cb51dc49298357b11e03919b562f474bc4b45f2eb636e6c7e0e2de787569d1bac387913a046fc4e6d0dffa2a5c502 errno.patch"
906f25047ae422beeb80b07af07e8516c97cb51dc49298357b11e03919b562f474bc4b45f2eb636e6c7e0e2de787569d1bac387913a046fc4e6d0dffa2a5c502 errno.patch
d85f051d3d8852630eebcaca61adc67ce06d4300bf2fed562920931d734fa20289de00f442cf1e844599af3de888655e696fe4935234f54fecd5a4a305d9c893 implicit.patch
"

View file

@ -0,0 +1,26 @@
diff --git a/ez-ipupdate.c b/ez-ipupdate.c
index 5d2b377..2521318 100644
--- a/ez-ipupdate.c
+++ b/ez-ipupdate.c
@@ -38,6 +38,9 @@
# include <config.h>
#endif
+#include <time.h>
+#include <string.h>
+
// you man very well need to edit this, don't worry though, email is only sent
// if bad things happend and it has to exit when in daemon mode.
#define SEND_EMAIL_CMD "mail"
diff --git a/md5.c b/md5.c
index 978a9e4..95bd85e 100644
--- a/md5.c
+++ b/md5.c
@@ -27,6 +27,7 @@
#ifdef USE_MD5
#include <stdlib.h>
+#include <string.h>
#ifdef HAVE_STRING_H
# include <string.h>
#else