pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Dec 10 06:13:15 UTC 2020

Modified Files:
        pkgsrc/sysutils: Makefile
Added Files:
        pkgsrc/sysutils/intel-backlight: DESCR Makefile PLIST distinfo
        pkgsrc/sysutils/intel-backlight/patches: patch-Makefile

Log Message:
sysutils: Add intel-backlight

This package contains the intel_backlight program from intel-gpu-tools,
which allows controlling the backlight level on certain Intel(R) GPUs,
including i915.

Since it performs direct PCI access, it must be run as root.


To generate a diff of this commit:
cvs rdiff -u -r1.920 -r1.921 pkgsrc/sysutils/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/intel-backlight/DESCR \
    pkgsrc/sysutils/intel-backlight/Makefile \
    pkgsrc/sysutils/intel-backlight/PLIST \
    pkgsrc/sysutils/intel-backlight/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/intel-backlight/patches/patch-Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.920 pkgsrc/sysutils/Makefile:1.921
--- pkgsrc/sysutils/Makefile:1.920      Thu Dec  3 07:51:37 2020
+++ pkgsrc/sysutils/Makefile    Thu Dec 10 06:13:14 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.920 2020/12/03 07:51:37 wiz Exp $
+# $NetBSD: Makefile,v 1.921 2020/12/10 06:13:14 nia Exp $
 #
 
 COMMENT=       System utilities
@@ -329,6 +329,7 @@ SUBDIR+=    i810switch
 SUBDIR+=       iat
 SUBDIR+=       idesk
 SUBDIR+=       install-sh
+SUBDIR+=       intel-backlight
 SUBDIR+=       intel-microcode-netbsd
 SUBDIR+=       intellij-fsnotifier
 SUBDIR+=       ioping

Added files:

Index: pkgsrc/sysutils/intel-backlight/DESCR
diff -u /dev/null pkgsrc/sysutils/intel-backlight/DESCR:1.1
--- /dev/null   Thu Dec 10 06:13:15 2020
+++ pkgsrc/sysutils/intel-backlight/DESCR       Thu Dec 10 06:13:15 2020
@@ -0,0 +1,5 @@
+This package contains the intel_backlight program from intel-gpu-tools,
+which allows controlling the backlight level on certain Intel(R) GPUs,
+including i915.
+
+Since it performs direct PCI access, it must be run as root.
Index: pkgsrc/sysutils/intel-backlight/Makefile
diff -u /dev/null pkgsrc/sysutils/intel-backlight/Makefile:1.1
--- /dev/null   Thu Dec 10 06:13:15 2020
+++ pkgsrc/sysutils/intel-backlight/Makefile    Thu Dec 10 06:13:15 2020
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2020/12/10 06:13:15 nia Exp $
+
+DISTNAME=      intel_backlight_fbsd-20200418
+PKGNAME=       ${DISTNAME:S/^intel_backlight_fbsd/intel-backlight/1}
+CATEGORIES=    sysutils
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=FreeBSDDesktop/}
+GITHUB_PROJECT=        intel_backlight_fbsd
+GITHUB_TAG=    a6c0e390a3d069870828713a8ba3475b31f87804
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/FreeBSDDesktop/intel_backlight_fbsd
+COMMENT=       Tool for controlling backlight level on certain Intel GPUs
+LICENSE=       mit
+
+BUILD_TARGET=  intel_backlight
+
+MAKE_FLAGS+=   CC=${CC:Q}
+MAKE_FLAGS+=   INCS=
+MAKE_FLAGS+=   LIBS=${LDFLAGS:Q}
+
+ONLY_FOR_PLATFORM+=    *-*-i386 *-*-x86_64
+NOT_FOR_PLATFORM+=     Darwin-*-*
+
+INSTALLATION_DIRS+=    sbin
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man1
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/intel_backlight \
+           ${DESTDIR}${PREFIX}/sbin/intel_backlight
+       ${INSTALL_MAN} ${WRKSRC}/intel_backlight.1 \
+           ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/intel_backlight.1
+
+.include "../../sysutils/libpciaccess/buildlink3.mk"
+.include "../../x11/libdrm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/sysutils/intel-backlight/PLIST
diff -u /dev/null pkgsrc/sysutils/intel-backlight/PLIST:1.1
--- /dev/null   Thu Dec 10 06:13:15 2020
+++ pkgsrc/sysutils/intel-backlight/PLIST       Thu Dec 10 06:13:15 2020
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/10 06:13:15 nia Exp $
+man/man1/intel_backlight.1
+sbin/intel_backlight
Index: pkgsrc/sysutils/intel-backlight/distinfo
diff -u /dev/null pkgsrc/sysutils/intel-backlight/distinfo:1.1
--- /dev/null   Thu Dec 10 06:13:15 2020
+++ pkgsrc/sysutils/intel-backlight/distinfo    Thu Dec 10 06:13:15 2020
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/12/10 06:13:15 nia Exp $
+
+SHA1 (intel_backlight_fbsd-20200418-a6c0e390a3d069870828713a8ba3475b31f87804.tar.gz) = 8172ef0b44cb494f5012522e1962cd3b1e5e7f31
+RMD160 (intel_backlight_fbsd-20200418-a6c0e390a3d069870828713a8ba3475b31f87804.tar.gz) = c8bde19d8bd005c026e5c62b79de544508201fef
+SHA512 (intel_backlight_fbsd-20200418-a6c0e390a3d069870828713a8ba3475b31f87804.tar.gz) = 
17280ba213e4e33f254f59bd37a3b3360a887600ed8da0f8ce3111335f9e6e1cd877b775b2d59e2aac95b7233cc061a4a060f1597ecec364afa355cdfedc81c9
+Size (intel_backlight_fbsd-20200418-a6c0e390a3d069870828713a8ba3475b31f87804.tar.gz) = 42408 bytes
+SHA1 (patch-Makefile) = 05af745ba67a1e09f3c4666666d269849ace6762

Index: pkgsrc/sysutils/intel-backlight/patches/patch-Makefile
diff -u /dev/null pkgsrc/sysutils/intel-backlight/patches/patch-Makefile:1.1
--- /dev/null   Thu Dec 10 06:13:15 2020
+++ pkgsrc/sysutils/intel-backlight/patches/patch-Makefile      Thu Dec 10 06:13:15 2020
@@ -0,0 +1,14 @@
+$NetBSD: patch-Makefile,v 1.1 2020/12/10 06:13:15 nia Exp $
+
+Let pkgsrc take care of stripping binaries.
+
+--- Makefile.orig      2020-04-18 22:07:25.000000000 +0000
++++ Makefile
+@@ -16,7 +16,6 @@ acpi-video-intel-backlight.conf: acpi-vi
+ 
+ intel_backlight: $(SRC)
+       $(CC) -o intel_backlight $(INCS) $(LIBS) $(SRC) $(CFLAGS) $(LDFLAGS)
+-      strip intel_backlight
+ 
+ install-man:
+       mkdir -p "$(DESTDIR)$(MANPREFIX)/man/man1"



Home | Main Index | Thread Index | Old Index