-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
added libutempter #3583
added libutempter #3583
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
PKG_NAME = libutempter | ||
PKG_VERS = 1.1.6 | ||
PKG_EXT = tar.bz2 | ||
PKG_DIST_NAME = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIST_SITE = ftp://ftp.altlinux.org/pub/people/ldv/utempter/ | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS) | ||
|
||
CONFIGURE_TARGET = nop | ||
DEPENDS = | ||
|
||
POST_PATCH_TARGET = libutempter_post_patch | ||
|
||
HOMEPAGE = http://freshmeat.sourceforge.net/projects/libutempter | ||
COMMENT = libutempter provides a library interface for terminal emulators such as screen and xterm to record user sessions to utmp and wtmp files. | ||
LICENSE = LGPLv2 | ||
|
||
include ../../mk/spksrc.cross-cc.mk | ||
|
||
.PHONY: libutempter_post_patch | ||
libutempter_post_patch: | ||
$(RUN) sed -e 's#@INSTALL_PREFIX@#$(STAGING_INSTALL_PREFIX)#' -i Makefile | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
lnk:lib/libutempter.so | ||
lnk:lib/libutempter.so.0 | ||
lib:lib/libutempter.so.1.1.6 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
libutempter-1.1.6.tar.bz2 SHA1 1964279755290c4b576f2db0ed518e2b45a9ca53 | ||
libutempter-1.1.6.tar.bz2 SHA256 b898565f31ced7e5c1fa0a2eaa0f6ff0ed862b5fe375d26375b64bfbdfeac397 | ||
libutempter-1.1.6.tar.bz2 MD5 b43827806923903aba2bc7cd3a2d45b7 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- Makefile 2010-11-04 17:14:53.000000000 +0000 | ||
+++ Makefile.new 2019-01-18 09:48:35.000000000 +0000 | ||
@@ -30,10 +30,12 @@ | ||
TARGETS = $(PROJECT) $(SHAREDLIB) $(STATICLIB) | ||
|
||
INSTALL = install | ||
-libdir = /usr/lib | ||
-libexecdir = /usr/lib | ||
-includedir = /usr/include | ||
-mandir = /usr/share/man | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’ll take a look tomorrow at this, I might have just got over zeleous There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I’ll fix this. |
||
+prefix = @INSTALL_PREFIX@ | ||
+exec_prefix =${prefix} | ||
+libdir =${exec_prefix}/lib | ||
+libexecdir =${exec_prefix}/lib | ||
+sharedlibdir =${libdir} | ||
+includedir =${prefix}/include | ||
man3dir = $(mandir)/man3 | ||
DESTDIR = | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am interested in a more "elegant" way to apply STAGING_INSTALL_PREFIX at "install" step... maybe overriding "DESTDIR" as make install command option may do the trick
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’m really not familiar at all with spksrc, with matts help I’ve managed to get this far with libutempter but that’s the extent of my knowledge, I don’t know where to start with doing this another way!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need a bit of a “you need to do these changes” help for this, I’m new to spksrc and generally Makefiles (30 years of commercial development and I’ve avoided Makefiles!).