diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-22 11:18:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-10-22 11:18:42 +0000 |
commit | da5cd3f343a44c7c04da89d5fc061596a1940ec5 (patch) | |
tree | 68000c95dc1d81ca254448c9c8ce76f1631a12c0 /main/smstools | |
parent | b27b9388a25701c6546c6d4d3acfb0aeacd82df8 (diff) | |
download | aports-da5cd3f343a44c7c04da89d5fc061596a1940ec5.tar.bz2 aports-da5cd3f343a44c7c04da89d5fc061596a1940ec5.tar.xz |
main/smstool: fix makefile
Diffstat (limited to 'main/smstools')
-rw-r--r-- | main/smstools/APKBUILD | 10 | ||||
-rw-r--r-- | main/smstools/makefile.patch | 42 |
2 files changed, 51 insertions, 1 deletions
diff --git a/main/smstools/APKBUILD b/main/smstools/APKBUILD index f999be4d93..04cfe90933 100644 --- a/main/smstools/APKBUILD +++ b/main/smstools/APKBUILD @@ -15,6 +15,7 @@ subpackages= pkgusers="smsd" pkggroups="smsd" source="http://smstools3.kekekasvi.com/packages/${_realname}-$pkgver.tar.gz + makefile.patch $pkgname.initd $pkgname.conf $pkgname.logrotate" @@ -23,7 +24,11 @@ _builddir="$srcdir"/$_realname prepare() { cd "$_builddir" - # apply patches here + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done } build() { @@ -68,14 +73,17 @@ package() { } md5sums="0241ef60e646fac1a06254a848e61ed7 smstools3-3.1.15.tar.gz +f4ab5a570e8006d85de48b7080091ea6 makefile.patch 9e5c309368f4056b90160b30f9f39c07 smstools.initd 6582c2d7961b5fd888f018b7287e401b smstools.conf b6f3db0e9fbd38058c2effc43c54abb9 smstools.logrotate" sha256sums="ed00ffaeaa312a5b4f969f4e97a64603a866bbe16e393ea02f5bf05234814d59 smstools3-3.1.15.tar.gz +aa37e42c94dedbea41060881e0133500c965dafb6911b26e5ba659ea7de9490f makefile.patch 319d20b45ac0e9e8628d56b4a8552fd4f513feb551e82be8640befbebbcc34a7 smstools.initd fbf2f111d9ab8b3f0ede02fc426c0056a5ac6554972b948e011bb1f08fedd299 smstools.conf f1c046c4b35c35777453cbaca32a982ed8511bf7d50a5190b9f57109e94c26e4 smstools.logrotate" sha512sums="6a4cc852327fac27b00fc58def4bbc8caa395552586fe1b84f0f4a9f7f6b00008943b85c86de0821036629c58cf04840a189d711b4ac96f7ddaafd6b340b11fa smstools3-3.1.15.tar.gz +fee73681f570052855e868aebe264c9d068596690667156f2068be99c69c2cf1edf670e9a5c2520d3e3e2b6d1efccb77289215642fd99e2357b4a1682b14bc47 makefile.patch 62f0ec5d0821f77ddd27911a70906e28778da6c4f4ae2f0562fff5592574b86ac53e7dba5e292169f3391f89c23c747f4beecf10ec7e2f1acdfa8efb0c1153aa smstools.initd cf2a6d605f49df10d172bc412983312d37b315e42bdb82b2ce27eda4aaaec8526a6548db293457f48aa70b8d911a4169c77682f68850bef4c084b27ca478db9d smstools.conf 668eed2143c1f08fe1deb27a20496317c77160f3278d68fbc54ac8008c5d266c0a2dc39551fd1ced92706bfffc0bc5ee7581e452670e3bff92837e598b98b10e smstools.logrotate" diff --git a/main/smstools/makefile.patch b/main/smstools/makefile.patch new file mode 100644 index 0000000000..459e5d64a8 --- /dev/null +++ b/main/smstools/makefile.patch @@ -0,0 +1,42 @@ +--- ./Makefile.orig ++++ ./Makefile +@@ -7,7 +7,7 @@ + VERSION=$(shell grep package_version src/version.h | cut -f2) + + compile: +- cd src && $(MAKE) -$(MAKEFLAGS) ++ cd src && $(MAKE) + + install: compile + ./install.sh $(BINDIR) +@@ -16,7 +16,7 @@ + ./uninstall.sh $(BINDIR) + + clean: +- cd src && $(MAKE) -$(MAKEFLAGS) clean ++ cd src && $(MAKE) clean + + package: compile clean + ./package.sh +--- ./src/Makefile.orig ++++ ./src/Makefile +@@ -37,15 +37,15 @@ + # Use the following only on GNU/Linux and only if you need ps listing like "smsd: MAINPROCESS" and "smsd: GSM1" + # CFLAGS += -D USE_LINUX_PS_TRICK + +-all: smsd +- +-smsd: smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o +- + ifneq (,$(findstring SOLARIS,$(CFLAGS))) + ifeq (,$(findstring DISABLE_INET_SOCKET,$(CFLAGS))) + override LFLAGS += -lsocket -lnsl + endif + endif ++ ++all: smsd ++ ++smsd: smsd.c extras.o locking.o cfgfile.o logging.o alarm.o smsd_cfg.o charset.o stats.o blacklist.o whitelist.o modeminit.o pdu.o + + ifneq (,$(findstring NOSTATS,$(CFLAGS))) + $(CC) $(CFLAGS) -o $@ $^ $(LFLAGS) |