Skip to content

Commit

Permalink
memcached: rework
Browse files Browse the repository at this point in the history
- update memcached to v1.6.15
- aarch64 patch is not required (memcached/memcached#743 is not an issue)
- update phpMemcachedAdmin to include fix for 1.6.x
- fix service user
  • Loading branch information
hgy59 committed May 21, 2022
1 parent 3a62fea commit da8abee
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 68 deletions.
2 changes: 1 addition & 1 deletion cross/memcached/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PKG_NAME = memcached
PKG_VERS = 1.6.9
PKG_VERS = 1.6.15
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = http://www.memcached.org/files
Expand Down
6 changes: 3 additions & 3 deletions cross/memcached/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
memcached-1.6.9.tar.gz SHA1 42ae062094fdf083cfe7b21ff377c781011c2be1
memcached-1.6.9.tar.gz SHA256 d5a62ce377314dbffdb37c4467e7763e3abae376a16171e613cbe69956f092d1
memcached-1.6.9.tar.gz MD5 ee802a316d7d622aaaec22382ca65004
memcached-1.6.15.tar.gz SHA1 badcfa0d65f5797cc9c2f957f3fbfedbd8c13411
memcached-1.6.15.tar.gz SHA256 8d7abe3d649378edbba16f42ef1d66ca3f2ac075f2eb97145ce164388e6ed515
memcached-1.6.15.tar.gz MD5 8a21ef7bc1c427e6cd88cac270394898
36 changes: 0 additions & 36 deletions cross/memcached/patches/aarch64/001-crc32-support.patch

This file was deleted.

30 changes: 17 additions & 13 deletions cross/phpmemcachedadmin/Makefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
PKG_NAME = phpMemcachedAdmin
PKG_VERS = 1.3.0
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT)
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://github.com/elijaa/phpmemcachedadmin/archive/refs/tags
PKG_DIR = $(PKG_NAME)-$(PKG_VERS)
PKG_DOWNLOAD_METHOD = git
PKG_GIT_HASH = aaf3d16a2a1e3dff72dd358f1758d96f0f174cb3
PKG_DIST_SITE = https://github.com/elijaa/phpmemcachedadmin.git
PKG_DIST_FILE = $(PKG_NAME)-git$(PKG_GIT_HASH).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-git$(PKG_GIT_HASH)

# Unfortunately only version 1.3.0 is officially released, but
# we need the commit aaf3d16 of 12 Jun 2020 for memcached 1.6.x
# Issue #19: fix mem_requested key change in Memcached 1.5.17

DEPENDS =

HOMEPAGE = https://github.com/elijaa/phpmemcachedadmin
COMMENT = Graphic stand-alone administration for memcached to monitor and debug purpose
LICENSE = Apache License 2.0
COMMENT = Graphic stand-alone administration for memcached to monitor and debug purpose.
LICENSE = Apache 2.0

EXTRACT_PATH = $(WORK_DIR)/$(PKG_DIR)
CONFIGURE_TARGET = nop
COMPILE_TARGET = nop
EXTRACT_PATH = $(WORK_DIR)
INSTALL_TARGET = phpmemcachedadmin_install

include ../../mk/spksrc.cross-cc.mk
include ../../mk/spksrc.install-resources.mk

.PHONY: phpmemcachedadmin_install
# make a copy of the sample config as on DSM7 it is not possible to create this at installation time.
phpmemcachedadmin_install:
mkdir -p $(STAGING_INSTALL_PREFIX)/share/$(PKG_NAME)
tar -cf - -C $(WORK_DIR)/$(PKG_DIR)/phpmemcachedadmin-$(PKG_VERS) . | tar -xf - -C $(STAGING_INSTALL_PREFIX)/share/$(PKG_NAME)
@mkdir -p $(STAGING_INSTALL_PREFIX)/share/$(PKG_NAME)
@tar -cf - -C $(WORK_DIR)/$(PKG_DIR) . | tar -xf - -C $(STAGING_INSTALL_PREFIX)/share/$(PKG_NAME)
@cp -f $(STAGING_INSTALL_PREFIX)/share/$(PKG_NAME)/Config/Memcache.sample.php $(STAGING_INSTALL_PREFIX)/share/$(PKG_NAME)/Config/Memcache.php
2 changes: 1 addition & 1 deletion cross/phpmemcachedadmin/PLIST
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rsc:share/phpMemcachedAdmin
rsc:share/phpMemcachedAdmin/
6 changes: 3 additions & 3 deletions cross/phpmemcachedadmin/digests
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
phpMemcachedAdmin-1.3.0.tar.gz SHA1 101fcae71834c466e51950e02bcaa6998ecbc4bc
phpMemcachedAdmin-1.3.0.tar.gz SHA256 9afae91888c991ad11a3d0433dc86720b4b08cf1320391cffb471f24bdabda2c
phpMemcachedAdmin-1.3.0.tar.gz MD5 195eb5e718be44c4e2c7b82c3dff6693
phpMemcachedAdmin-gitaaf3d16a2a1e3dff72dd358f1758d96f0f174cb3.tar.gz SHA1 28d8c233e6e1814fd25a37a2c1f7d3ee35a94d32
phpMemcachedAdmin-gitaaf3d16a2a1e3dff72dd358f1758d96f0f174cb3.tar.gz SHA256 1248fe1c6df610b6ea69dfba1a2774d182160a444759d3bf1b4782458d40fe00
phpMemcachedAdmin-gitaaf3d16a2a1e3dff72dd358f1758d96f0f174cb3.tar.gz MD5 e1e846983f33fcdb480c91c365bc7cac
18 changes: 7 additions & 11 deletions spk/memcached/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
SPK_NAME = memcached
SPK_VERS = 1.6.9
SPK_VERS = 1.6.15
SPK_REV = 3
SPK_ICON = src/memcached.png
DSM_UI_DIR = app
Expand All @@ -10,23 +10,19 @@ MAINTAINER = Diaoul
DESCRIPTION = Free \& open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load. It comes with phpMemcachedAdmin, a graphic stand-alone administration for memcached to monitor and debug purpose.
ADMIN_URL = /phpMemcachedAdmin/
DISPLAY_NAME = Memcached
CHANGELOG = "1. Bump 1.4.13 -> 1.6.9 <br />2. Add DSM 7 compliance"
CHANGELOG = "1. Update memcached from v1.4.13 to v1.6.15.<br/>2. Add DSM 7 compliance."

HOMEPAGE = https://memcached.org/
LICENSE =

CONF_DIR = src/conf

SPK_USER = auto
SYSTEM_GROUP = http

SERVICE_USER = auto
SERVICE_PORT = 11211
SERVICE_PORT_TITLE = $(DISPLAY_NAME)
NO_SERVICE_SHORTCUT = yes

SERVICE_SETUP = src/service-setup.sh
# This is a bogus value to ensure that everything is tailored for a SERVICE_COMMAND
# The real value is defined by the setup file
SERVICE_COMMAND = memcached
# SERVICE_COMMAND is defined in service setup script
STARTABLE = yes
SERVICE_SETUP = src/service-setup.sh

INSTALL_DEP_SERVICES = apache-web
START_DEP_SERVICES = apache-web
Expand Down

0 comments on commit da8abee

Please sign in to comment.