Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Jul 2016 09:00:53 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r419103 - in head/sysutils/915resolution: . files
Message-ID:  <201607260900.u6Q90rxt065636@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Tue Jul 26 09:00:53 2016
New Revision: 419103
URL: https://svnweb.freebsd.org/changeset/ports/419103

Log:
  - Add LICENSE
  - Switch to options helpers
  - Don't install LICENSE with documentation
  - Regenerate patches with `make makepatch`

Modified:
  head/sysutils/915resolution/Makefile
  head/sysutils/915resolution/files/patch-915resolution.c

Modified: head/sysutils/915resolution/Makefile
==============================================================================
--- head/sysutils/915resolution/Makefile	Tue Jul 26 07:55:05 2016	(r419102)
+++ head/sysutils/915resolution/Makefile	Tue Jul 26 09:00:53 2016	(r419103)
@@ -11,20 +11,25 @@ MASTER_SITES=	LOCAL/cy
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Resolution tool for Intel i915 video cards
 
+LICENSE=	PD
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+ONLY_FOR_ARCHS=	i386 amd64
+
 USE_RC_SUBR=	915resolution
 
 PLIST_FILES=	sbin/915resolution
-PORTDOCS=	README.txt LICENSE.txt chipset_info.txt changes.log
+PORTDOCS=	README.txt chipset_info.txt changes.log
 
 OPTIONS_DEFINE=	DOCS
 
-ONLY_FOR_ARCHS=	i386 amd64
-
 do-build:
 	${CC} ${CFLAGS} ${WRKSRC}/915resolution.c -o ${WRKSRC}/915resolution
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/915resolution ${STAGEDIR}${PREFIX}/sbin
+
+do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
 

Modified: head/sysutils/915resolution/files/patch-915resolution.c
==============================================================================
--- head/sysutils/915resolution/files/patch-915resolution.c	Tue Jul 26 07:55:05 2016	(r419102)
+++ head/sysutils/915resolution/files/patch-915resolution.c	Tue Jul 26 09:00:53 2016	(r419103)
@@ -1,5 +1,5 @@
---- 915resolution.c.orig	Sun Apr 15 06:46:56 2007
-+++ 915resolution.c	Sun Apr 15 06:46:56 2007
+--- 915resolution.c.orig	2007-04-15 10:46:56 UTC
++++ 915resolution.c
 @@ -21,8 +21,10 @@
  #define __USE_GNU
  #include <string.h>
@@ -12,7 +12,7 @@
  #include <unistd.h>
  #include <assert.h>
  
-@@ -165,7 +167,8 @@
+@@ -165,7 +167,8 @@ typedef struct {
  void initialize_system(char * filename) {
  
      if (!filename) {
@@ -22,7 +22,7 @@
              perror("Unable to obtain the proper IO permissions");
              exit(2);
          }
-@@ -173,7 +176,7 @@
+@@ -173,7 +176,7 @@ void initialize_system(char * filename) 
  }
  
  cardinal get_chipset_id(void) {
@@ -31,7 +31,7 @@
      return inl(0xcfc);
  }
  
-@@ -496,11 +499,11 @@
+@@ -496,11 +499,11 @@ void unlock_vbios(vbios_map * map) {
          break;
      case CT_830:
      case CT_855GM:
@@ -46,7 +46,7 @@
          break;
      case CT_845G:
      case CT_865G:
-@@ -511,13 +514,13 @@
+@@ -511,13 +514,13 @@ void unlock_vbios(vbios_map * map) {
      case CT_946GZ:
      case CT_G965:
      case CT_Q965:
@@ -64,7 +64,7 @@
          break;
      }
  
-@@ -539,8 +542,8 @@
+@@ -539,8 +542,8 @@ void relock_vbios(vbios_map * map) {
          break;
      case CT_830:
      case CT_855GM:
@@ -75,7 +75,7 @@
          break;
      case CT_845G:
      case CT_865G:
-@@ -551,9 +554,9 @@
+@@ -551,9 +554,9 @@ void relock_vbios(vbios_map * map) {
      case CT_946GZ:
      case CT_G965:
      case CT_Q965:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607260900.u6Q90rxt065636>