FreeBSD Bugzilla – Attachment 241559 Details for
Bug 270911
net/gitup: Improve gitup.conf auto config
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
gitup_config v0
gitup_config.diff (text/plain), 1.23 KB, created by
Nuno Teixeira
on 2023-04-18 13:27:05 UTC
(
hide
)
Description:
gitup_config v0
Filename:
MIME Type:
Creator:
Nuno Teixeira
Created:
2023-04-18 13:27:05 UTC
Size:
1.23 KB
patch
obsolete
>diff --git a/net/gitup/Makefile b/net/gitup/Makefile >index 2bf7c85c099f..c4bac3af87a2 100644 >--- a/net/gitup/Makefile >+++ b/net/gitup/Makefile >@@ -21,10 +21,10 @@ PORTDOCS= README.md > > OPTIONS_DEFINE= DOCS > >-post-patch: >- @${REINPLACE_CMD} -e 's|stable\/12|stable\/${OSREL:R}| ; \ >- s|releng\/11.4|releng\/${OSREL}|' \ >- ${WRKSRC}/gitup.conf >+#post-patch: >+# @${REINPLACE_CMD} -e 's|stable\/12|stable\/${OSREL:R}| ; \ >+# s|releng\/11.4|releng\/${OSREL}|' \ >+# ${WRKSRC}/gitup.conf > > do-install: > ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin >diff --git a/net/gitup/pkg-post-install b/net/gitup/pkg-post-install >new file mode 100644 >index 000000000000..dddd9cfecc53 >--- /dev/null >+++ b/net/gitup/pkg-post-install >@@ -0,0 +1,19 @@ >+#!/bin/sh - >+ >+osrel=$(${PKG_ROOTDIR}/bin/freebsd-version -u) >+releng=${osrel%%-*} >+stable=${osrel%%.*} >+ >+echo "Configuring ${PKG_PREFIX}/etc/gitup.conf for $osrel:" >+sed -i '' -E -e "s,stable/[0-9]+,stable/${stable}," -e "s,releng/[0-9].+,releng/${releng}," ${PKG_PREFIX}/etc/gitup.conf >+echo >+echo "$(egrep '(release|releng)|stable' ${PKG_PREFIX}/etc/gitup.conf)" >+ >+# debug >+echo --- >+echo osrel=${osrel} >+echo releng=${releng} >+echo stable=${stable} >+echo prefix=${PKG_PREFIX} >+echo --- >+# end debug
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 270911
:
241559
|
241560
|
241561
|
242051