Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Package up onbld materials as a pkgsrc package. #349

Closed
nshalman opened this issue Sep 5, 2014 · 4 comments
Closed

Feature Request: Package up onbld materials as a pkgsrc package. #349

nshalman opened this issue Sep 5, 2014 · 4 comments

Comments

@nshalman
Copy link
Contributor

@nshalman nshalman commented Sep 5, 2014

References:
http://wiki.smartos.org/display/DOC/Packaging+ON+build+products+with+pkgsrc
https://github.com/joyent/smartos-live/tree/master/pkgsrc

All that's needed is a subdirectory with the appropriate metadata files and a tweak to the Makefile.

Feel free to assign this to me if that's possible.
I'm creating this as a reminder to myself more than anything else.
Lowest possible priority.

@nshalman

This comment has been minimized.

Copy link
Contributor Author

@nshalman nshalman commented Sep 8, 2014

This looks trickier than I first anticipated since illumos doesn't seem ship the onbld tools to the proto directory...

@razamatan

This comment has been minimized.

Copy link

@razamatan razamatan commented Sep 19, 2014

could this work, or did you intend to actually compile them?

From 87138538b5f543375fceb13a78ed9258f6a1afcd Mon Sep 17 00:00:00 2001
From: razamatan <razamatan@hotmail.com>
Date: Fri, 19 Sep 2014 00:25:40 -0700
Subject: [PATCH] onbld package

---
 onbld/DESCR    |  1 +
 onbld/Makefile | 34 ++++++++++++++++++++++++++++++++++
 onbld/PLIST    | 15 +++++++++++++++
 onbld/distinfo |  5 +++++
 4 files changed, 55 insertions(+)
 create mode 100644 onbld/DESCR
 create mode 100644 onbld/Makefile
 create mode 100644 onbld/PLIST
 create mode 100644 onbld/distinfo

diff --git a/onbld/DESCR b/onbld/DESCR
new file mode 100644
index 0000000..e7a23f2
--- /dev/null
+++ b/onbld/DESCR
@@ -0,0 +1 @@
+http://wiki.smartos.org/display/DOC/Packaging+ON+build+products+with+pkgsrc
diff --git a/onbld/Makefile b/onbld/Makefile
new file mode 100644
index 0000000..937a0f5
--- /dev/null
+++ b/onbld/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD$
+
+DISTNAME=  onbld-0.0.1
+CATEGORIES=    devel
+MASTER_SITES=  http://us-east.manta.joyent.com/nahamu/public/smartos/
+EXTRACT_SUFX=  .tgz
+
+MAINTAINER=    razamatan@hotmail.com
+HOMEPAGE=  http://us-east.manta.joyent.com/nahamu/public/smartos/
+COMMENT=   ON tools (ctf*)
+LICENSE=       cddl-1.0
+
+NO_BUILD=  yes
+
+INSTALLATION_DIRS= bin bin/i386 lib lib/i386
+
+do-install:
+   ${INSTALL_PROGRAM} ${WRKDIR}/bin/i386/cscope-fast ${DESTDIR}${PREFIX}/bin/i386
+   ${INSTALL_PROGRAM} ${WRKDIR}/bin/i386/ctfconvert ${DESTDIR}${PREFIX}/bin/i386
+   ${INSTALL_PROGRAM} ${WRKDIR}/bin/i386/ctfdump ${DESTDIR}${PREFIX}/bin/i386
+   ${INSTALL_PROGRAM} ${WRKDIR}/bin/i386/ctfmerge ${DESTDIR}${PREFIX}/bin/i386
+   ${INSTALL_PROGRAM} ${WRKDIR}/bin/i386/ctfstabs ${DESTDIR}${PREFIX}/bin/i386
+   ${INSTALL_PROGRAM} ${WRKDIR}/bin/i386/ctfstrip ${DESTDIR}${PREFIX}/bin/i386
+   ln -sf i386/cscope-fast ${DESTDIR}${PREFIX}/bin/cscope-fast
+   ln -sf i386/ctfconvert ${DESTDIR}${PREFIX}/bin/ctfconvert
+   ln -sf i386/ctfdump ${DESTDIR}${PREFIX}/bin/ctfdump
+   ln -sf i386/ctfmerge ${DESTDIR}${PREFIX}/bin/ctfmerge
+   ln -sf i386/ctfstabs ${DESTDIR}${PREFIX}/bin/ctfstabs
+   ln -sf i386/ctfstrip ${DESTDIR}${PREFIX}/bin/ctfstrip
+   ${INSTALL_LIB} ${WRKDIR}/lib/i386/libdwarf.so.1 ${DESTDIR}${PREFIX}/lib/i386
+   ln -sf libdwarf.so.1 ${DESTDIR}${PREFIX}/lib/i386/libdwarf.so
+
+# url2pkg-marker (please do not remove this line.)
+.include "../../mk/bsd.pkg.mk"
diff --git a/onbld/PLIST b/onbld/PLIST
new file mode 100644
index 0000000..4bb4dfb
--- /dev/null
+++ b/onbld/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD$
+bin/cscope-fast
+bin/ctfconvert
+bin/ctfdump
+bin/ctfmerge
+bin/ctfstabs
+bin/ctfstrip
+bin/i386/cscope-fast
+bin/i386/ctfconvert
+bin/i386/ctfdump
+bin/i386/ctfmerge
+bin/i386/ctfstabs
+bin/i386/ctfstrip
+lib/i386/libdwarf.so
+lib/i386/libdwarf.so.1
diff --git a/onbld/distinfo b/onbld/distinfo
new file mode 100644
index 0000000..88ab966
--- /dev/null
+++ b/onbld/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+SHA1 (onbld-0.0.1.tgz) = a6a69352ab90e2ea1b1eaa9e71f7526600c72a7a
+RMD160 (onbld-0.0.1.tgz) = 85f64ca3e6b6536d88a50c8f65612e005a9ab9a6
+Size (onbld-0.0.1.tgz) = 273976 bytes
-- 
1.9.4

@nshalman

This comment has been minimized.

Copy link
Contributor Author

@nshalman nshalman commented Sep 19, 2014

That would work to package a tarball into a package.
I intended a tighter integration with the other packages being packaged from the Makefiles in
https://github.com/joyent/smartos-live/tree/master/pkgsrc

@nshalman

This comment has been minimized.

Copy link
Contributor Author

@nshalman nshalman commented Feb 16, 2015

Fixed in b741334

@nshalman nshalman closed this Feb 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.