summaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2002-10-29 04:47:25 +0000
committeredwin <edwin@FreeBSD.org>2002-10-29 04:47:25 +0000
commit84c40ae6c1d4120df485a0340d87b191ea12eaa2 (patch)
treea5e4366a9f90e5f77de3218b9c069d21435cf0d9 /sysutils
parentef3e98fdacec5d74a12b5291fd1ba1dab71ef0d7 (diff)
downloadFreeBSD-ports-84c40ae6c1d4120df485a0340d87b191ea12eaa2.zip
FreeBSD-ports-84c40ae6c1d4120df485a0340d87b191ea12eaa2.tar.gz
Unbreak build of sysutils/lcdproc
PR: ports/44213 Submitted by: Sergei Kolobov <sergei@kolobov.com>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/lcdproc/Makefile7
-rw-r--r--sysutils/lcdproc/files/LCDd.sh.sample2
-rw-r--r--sysutils/lcdproc/files/patch-configure19
3 files changed, 22 insertions, 6 deletions
diff --git a/sysutils/lcdproc/Makefile b/sysutils/lcdproc/Makefile
index e81ef38..830ae6e 100644
--- a/sysutils/lcdproc/Makefile
+++ b/sysutils/lcdproc/Makefile
@@ -16,16 +16,13 @@ MAINTAINER= ports@FreeBSD.org
ONLY_FOR_ARCHS= i386
GNU_CONFIGURE= yes
+USE_REINPLACE= yes
MAN1= lcdproc.1
MAN8= LCDd.8
pre-patch:
- @${CP} ${WRKSRC}/configure ${WRKSRC}/configure.orig
- @${SED} -e 's|CFLAGS=\"-O3\"||' ${WRKSRC}/configure.orig \
- > ${WRKSRC}/configure
- @${CP} ${FILESDIR}/LCDd.sh.sample ${WRKSRC}/LCDd.sh.sample.orig
- @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/LCDd.sh.sample.orig \
+ @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' ${FILESDIR}/LCDd.sh.sample \
> ${WRKSRC}/LCDd.sh.sample
post-install:
diff --git a/sysutils/lcdproc/files/LCDd.sh.sample b/sysutils/lcdproc/files/LCDd.sh.sample
index 0dd1341..70b56f1 100644
--- a/sysutils/lcdproc/files/LCDd.sh.sample
+++ b/sysutils/lcdproc/files/LCDd.sh.sample
@@ -2,7 +2,7 @@
case "$1" in
start)
- %%PREFIX%%/bin/LCDd -c %%PREFIX%%/etc/LCDd.conf
+ /usr/local/bin/LCDd -c /usr/local/etc/LCDd.conf
echo -n " drm-kmod"
;;
stop)
diff --git a/sysutils/lcdproc/files/patch-configure b/sysutils/lcdproc/files/patch-configure
new file mode 100644
index 0000000..72052de
--- /dev/null
+++ b/sysutils/lcdproc/files/patch-configure
@@ -0,0 +1,19 @@
+--- configure.orig Fri Oct 18 20:16:40 2002
++++ configure Fri Oct 18 20:23:32 2002
+@@ -886,7 +886,7 @@
+ if test $debug = "yes"; then
+ CFLAGS="-g -O"
+ else
+- CFLAGS="-O3"
++
+ fi
+ CFLAGS="-Wall $CFLAGS"
+ export CFLAGS
+@@ -2902,6 +2902,7 @@
+
+ echo $ac_n "checking for your mounted filesystem table""... $ac_c" 1>&6
+ echo "configure:2905: checking for your mounted filesystem table" >&5
++ac_cv_mtab_file=/etc/fstab
+ if eval "test \"`echo '$''{'ac_cv_mtab_file'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
OpenPOWER on IntegriCloud