head	1.1;
access;
symbols
	pkgsrc-2026Q1:1.1.0.6
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.4
	pkgsrc-2025Q4-base:1.1
	pkgsrc-2025Q3:1.1.0.2
	pkgsrc-2025Q3-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2025.08.19.14.13.16;	author pho;	state Exp;
branches;
next	;
commitid	ptdoiYwrfyRZAl7G;


desc
@@


1.1
log
@net/gkrellm-snmp: Update to 1.1

pkgsrc changes:
 - Removed patch-aa (Makefile)
 - Added a replacement Makefile for libtoolisation
 - Removed patch-ab (gkrellm_snmp.c): The patch heavily modified the source
   but had no explanation at all. Not a single hunk in it applied
   cleanly. It also had some modifications to {load,save}_plugin_config()
   but I couldn't comprehend the intention. Old config lines are most
   likely incompatible with this version, and will be skipped. Sorry about
   that, but packages should never have been modified like this.

upstream changes:
1.1 (2009-01-03)
 - License clarification (thanks to Debian maintainers)
 - Removed unnecessary linking to libssl

1.0 (2006-05-01)
 - Makefile changes for OS-X (thanks to Mark Duling)
 - Added grid config to charts

0.22 (2003-09-21)
 - net-snmp is the default now, use make ucdsnmp if necessary
 - tcp/udp transport (patch from Quentin Garnier)
 - added chart config save/load functions
@
text
@# $NetBSD$
#
# Replacement Makefile for gkrellm-snmp for portability
#

OBJS=	gkrellm_snmp.lo

PKG_CONFIG_DEPS=	gtk+-2.0 netsnmp
EXTRA_CFLAGS!=		pkg-config ${PKG_CONFIG_DEPS} --cflags
EXTRA_LIBS!=		pkg-config ${PKG_CONFIG_DEPS} --libs

.PHONY: all
all: gkrellm_snmp.la

gkrellm_snmp.la: ${OBJS}
	${LIBTOOL} --tag=CC --mode=link \
		${CC} ${LDFLAGS} ${EXTRA_LIBS} ${.ALLSRC} -o ${.TARGET} \
		-module -shared -avoid-version -rpath ${PLUGIN_DIR:Q}

.SUFFIXES: .c .lo
.c.lo:
	${LIBTOOL} --tag=CC --mode=compile \
		${CC} -c ${CFLAGS} ${EXTRA_CFLAGS} ${.IMPSRC} -shared

.PHONY: install
install: gkrellm_snmp.la
	${INSTALL_LIB_DIR} ${DESTDIR}${PLUGIN_DIR}
	${LIBTOOL} --mode=install ${INSTALL_LIB} ${.ALLSRC} ${DESTDIR}${PLUGIN_DIR}
@
