pkgsrc-WIP-changes archive

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

nancy: fix build, install. Seems to work. Thanks jperkin!



Module Name:	pkgsrc-wip
Committed By:	Maya Rashish <maya%NetBSD.org@localhost>
Pushed By:	coypu
Date:		Thu Jan 7 22:22:53 2021 +0200
Changeset:	e09c379fd75b2eb703d9b0b8cee7b56542efe907

Modified Files:
	nancy/DESCR
	nancy/Makefile
	nancy/PLIST

Log Message:
nancy: fix build, install. Seems to work. Thanks jperkin!

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e09c379fd75b2eb703d9b0b8cee7b56542efe907

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

diffstat:
 nancy/DESCR    | 27 ++++-----------------------
 nancy/Makefile | 11 +++++------
 nancy/PLIST    |  4 +---
 3 files changed, 10 insertions(+), 32 deletions(-)

diffs:
diff --git a/nancy/DESCR b/nancy/DESCR
index 69ba9460c6..350c325658 100644
--- a/nancy/DESCR
+++ b/nancy/DESCR
@@ -1,23 +1,4 @@
-TODO: Adjust the following lines from README.md
-
-<!--
-
-    Copyright 2018-present Sonatype Inc.
-
-    Licensed under the Apache License, Version 2.0 (the "License");
-    you may not use this file except in compliance with the License.
-    You may obtain a copy of the License at
-
-        http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
-
--->
-<p align="center">
-    <img src="https://github.com/sonatype-nexus-community/nancy/blob/main/docs/images/nancy.png"; width="350" alt="nancy logo"/>
-</p>
-...
+nancy is a tool to check for vulnerabilities in your Golang
+dependencies, powered by Sonatype OSS Index, and as well, works
+with Nexus IQ Server, allowing you a smooth experience as a Golang
+developer, using the best tools in the market!
diff --git a/nancy/Makefile b/nancy/Makefile
index 769fb9ee3b..eb00ef4b2a 100644
--- a/nancy/Makefile
+++ b/nancy/Makefile
@@ -16,14 +16,13 @@ LICENSE=	apache-2.0
 WRKSRC=		${WRKDIR}/nancy-1.0.5
 USE_LANGUAGES=	# none
 
-BUILD_TARGET=	build
+do-build:
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GO} build -o nancy -v
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/nancy ${DESTDIR}${PREFIX}/bin/
 
 .include "go-modules.mk"
 
-#.include "../../devel/go-fsnotify/buildlink3.mk"
-#.include "../../devel/go-protobuf/buildlink3.mk"
-#.include "../../security/go-crypto/buildlink3.mk"
-#.include "../../devel/go-cmp/buildlink3.mk"
-#.include "../../devel/go-glog/buildlink3.mk"
 .include "../../lang/go/go-module.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/nancy/PLIST b/nancy/PLIST
index ddb0923b3a..e0a639fd99 100644
--- a/nancy/PLIST
+++ b/nancy/PLIST
@@ -1,4 +1,2 @@
 @comment $NetBSD$
-@comment TODO: to fill this file with the file listing:
-@comment TODO: 1. run "/home/maya/pkg/bin/bmake package"
-@comment TODO: 2. run "/home/maya/pkg/bin/bmake print-PLIST"
+bin/nancy


Home | Main Index | Thread Index | Old Index