From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-admin/packagekit-base/Manifest | 16 ++ ...PackageKitEntropyClient.output-API-update.patch | 26 +++ .../packagekit-base-0.8.15-qtdbus-annotate.patch | 12 ++ .../files/packagekit-base-0.8.x-npapi-sdk.patch | 13 ++ .../files/packagekit-base-1.1.1-cache-qafix.patch | 15 ++ .../files/packagekit-base-elogind-support.patch | 184 +++++++++++++++++++++ app-admin/packagekit-base/metadata.xml | 24 +++ .../packagekit-base/packagekit-base-1.0.11.ebuild | 111 +++++++++++++ .../packagekit-base/packagekit-base-1.1.1.ebuild | 113 +++++++++++++ .../packagekit-base/packagekit-base-1.1.4.ebuild | 116 +++++++++++++ .../packagekit-base-1.1.5-r2.ebuild | 129 +++++++++++++++ 11 files changed, 759 insertions(+) create mode 100644 app-admin/packagekit-base/Manifest create mode 100644 app-admin/packagekit-base/files/0001-entropy-PackageKitEntropyClient.output-API-update.patch create mode 100644 app-admin/packagekit-base/files/packagekit-base-0.8.15-qtdbus-annotate.patch create mode 100644 app-admin/packagekit-base/files/packagekit-base-0.8.x-npapi-sdk.patch create mode 100644 app-admin/packagekit-base/files/packagekit-base-1.1.1-cache-qafix.patch create mode 100644 app-admin/packagekit-base/files/packagekit-base-elogind-support.patch create mode 100644 app-admin/packagekit-base/metadata.xml create mode 100644 app-admin/packagekit-base/packagekit-base-1.0.11.ebuild create mode 100644 app-admin/packagekit-base/packagekit-base-1.1.1.ebuild create mode 100644 app-admin/packagekit-base/packagekit-base-1.1.4.ebuild create mode 100644 app-admin/packagekit-base/packagekit-base-1.1.5-r2.ebuild (limited to 'app-admin/packagekit-base') diff --git a/app-admin/packagekit-base/Manifest b/app-admin/packagekit-base/Manifest new file mode 100644 index 000000000000..7b3d78322731 --- /dev/null +++ b/app-admin/packagekit-base/Manifest @@ -0,0 +1,16 @@ +AUX 0001-entropy-PackageKitEntropyClient.output-API-update.patch 980 SHA256 4fc2b5a8b57970e9ceecc93fd6ee15cfc4991ba528efb7d101e991ee15698a10 SHA512 ea801f71cbffe6dee1375663e616a0b8ce8cbbe408806a084fd5aa8366a5221147650e3e56bcf9f04e035f3e9556d5220c8c0b63de15404e427da073c5a909c0 WHIRLPOOL bac5be531218b6075a74819fdf03053226ad208604e5f47f5f6db1e246088b8ff7f5f7eca5adc780dbd372715288feb9f7b9ab7127373ca090d08ed83931d1c3 +AUX packagekit-base-0.8.15-qtdbus-annotate.patch 558 SHA256 4d8f88ab0f5e5f08c6b6d8f72b57b5de46e809ed879c3a6d25a7ce94ce167bfc SHA512 184d2d2a1d8abeb18bccd3aaa4494d5813b384b4529a2a2da270a22040fd7cdf210b86e9c2447d189e75db77c306d9c113c9ccd6497a95426dcb65af9c93df25 WHIRLPOOL 114c0509da7fa98cadbff05def2a6206839d99bb81e496c584edae45536dee7ac4286396a6fbb673bb27590e6768799f57c17882f5f99b2b9867bfc97296de7b +AUX packagekit-base-0.8.x-npapi-sdk.patch 473 SHA256 49d0f5a223bf3b44b3d07dc2dfcf3403837b4a59d15ff2e990363bfec84f1813 SHA512 485c4d6f202ecc15d71530e4805cec18a564cb76db7b0455543949fc263f1f76bf25132f7e0443a081aef965c5579ee3f46e438a96d757ad1f6d264e8a3b01c2 WHIRLPOOL e6a39470d68242f8e2caf9775c3612d300240efc658e106c50f8eb1e19a02f2a445cf1c8e14903a6fcebc773fd6d83497187bafef50bbc45a0297619d2e3c596 +AUX packagekit-base-1.1.1-cache-qafix.patch 469 SHA256 c5fe7593cfdbb3825573a0d8fe04ab78dfa04ade59eeecac78e8b5f649f5d468 SHA512 7efb79f5b25f4b1b3db22247c695e13d748908c6802667bd8dc322c247881bd133aa8787192598b384ce8080ac986031e5fee64201f17e4e8af7e15fc7d18424 WHIRLPOOL ffc5d382eb5d331f87f1d5998573a6eefacf7746be95ce5364b13770768abef4986f152d88e3f921f8bc398e6a82bdcedf17890dd9d05c60fdc62d06727e4c96 +AUX packagekit-base-elogind-support.patch 5850 SHA256 1db41507b689667dc2cbc7f022c8784169b994989cfb57f7e1b26455d2d17090 SHA512 2494c80f7d6b20a9b55f18af8f111134e06d39dd140429da70cd90c36abe73c5b1b002efe79463d0e74cffd2653623473b6bf42579bc69525bcd10c268d41b4a WHIRLPOOL ef254db7cf69148f4ec37dfb42547fd90910316d3dcf58cacfb025d360bc9ed85d65cccfeb10a5b33bb91c2af45fb1e1164ad5e990dc6855ae78f93fd4886233 +DIST PackageKit-1.0.11.tar.xz 1427404 SHA256 bbd27bbc77795394f25ab009fe1b3420e365541c99248b18bbaa2fa7f029eaf7 SHA512 9529037685f76e883a71ae502eabd83c3e1e8905f76cfe5e938760677f0224f8758bca59e139588aa06589bcca7a20f13dea0fe419022cb950c7a4c631237bce WHIRLPOOL 8d9bebf55acdff2096bb750bc1f3028cdbbb8e0fd09926de69c7e3dcbd7fe56a2908709be01633dd5a61df80afab05b28d8f424b1bbb79454f503cd03301e56a +DIST PackageKit-1.1.1.tar.xz 1410632 SHA256 483348a54c92419d713a8a153926ec6e1ab70ba64ae4afd3f0a6d63d10b1cac4 SHA512 caf9b67f71a36479d32338c28343671e9586aade7a0f777b867772ad8da8e3206bf66a46b2fa2cba8f0f48af27db3888b68e336707db6f76c5e0dbed464e2874 WHIRLPOOL 0a09233580b50f391931760960c3fe8a644797b24c15a79d56bdbfdadde835856f81175e209ad6877c49387c946c8765418eef28fc1fd188eb5d5d5a383fd1ad +DIST PackageKit-1.1.4.tar.xz 1424756 SHA256 0ae89f7c381b7def41960f690f7212cf80f7f6bfc9055ce8d0c84aa45f120cd9 SHA512 fc04d58c46f7e7dbb1386d26627ea246b5f21b8483862788bb734b8a137e4cb1d41de0f471b46f6d649e29337f9605acba0568a845577b27a2ac0faaf391b187 WHIRLPOOL f76a446eb64721cb718fe250d710aaf4e0d801bddb44835a7a0327ed250150928d717bb037d23c758eb6bfb752b77aea4bb5a14c8df58b964e008f2260e45736 +DIST PackageKit-1.1.5.tar.xz 1418292 SHA256 50f448ced5b460bd79ba0c97e9fe080153eaeecad909eee108284e3f5fc7b70c SHA512 ecc6a4d39caa0a7ea2047f52f95980b23e61ae200e27559326f03302b1c0d798f9cbae53fcf2d397dca3d54e52f143e2e7aa4e3f0b2df8c39e53bd2993e86154 WHIRLPOOL d21df70793d316ffd045f9c4b06f0e31015cf659e9f3679cd96dbdaf3acf22e030446030f2c5a589f87b351b8a191dda7614bb63462a9e1017bb9ae11fcfdbf8 +EBUILD packagekit-base-1.0.11.ebuild 2897 SHA256 3475a9adabb119fb6c0b8347090a31319c46db7e2cd24895982fbe4bdfc0f86a SHA512 40f13d99bec2493be551c2bae8d34789f1155c57d5a01b5f5964f18e6124894ab31d72532d481d136175d37979752e8926d91b44bdc181d47856725c19727c33 WHIRLPOOL db1e0bb090d5b16c54536b1eecd243b9a73d816ebf4783d15274ecd1485d04e092acfb37d59fde6880ff7b821c0a8198ca1a6f1c1e76b862cd052b7b0260aa56 +EBUILD packagekit-base-1.1.1.ebuild 3338 SHA256 3713268ea8daa81aa14563ef8e0ad0b436b9557c3ae39a6cf1dd2efb029294aa SHA512 95e673821d137a33e1622e1cad241bf9649ad1368ac4c27178643d40f39f3bc8408546f5f545dc325ca72be0586ee5dadc7f33af0c1d98acc7ec748eb305fc22 WHIRLPOOL 06f7765dd45607fcf76079227c5598e136e00499c61c56bd4387986088dcaf04cc1d19bbfbc2fe72969c258b99b06c3d60383498e6ae7a728e0d3666e9e1fa37 +EBUILD packagekit-base-1.1.4.ebuild 3372 SHA256 28ad7d347fc98b86d2dd0750cca8b90040fc49367a0a8afd2c0a4b932efdbb23 SHA512 44ccfdf2114a4d2d0d90ce39e7b18ce8adebac5f423fda4661c0e848d39efd7a9dba12a54022e77e6171aa44037cb65b6a6c584346d1181c0ddfe18212354046 WHIRLPOOL a513f630f1cd1227c47e30b50f9dde8f61a40cd37795f87d6d5c972c1f1b3b7d42dd8e83dae212f9bac5be8c75d96f9877cc5160912627d6a267f1c0d0358dd4 +EBUILD packagekit-base-1.1.5-r2.ebuild 3712 SHA256 44ddc410e962ae5986f1dbedaa6007af34782dd8bddf60bc1a9796ae3f502778 SHA512 8bf5c3acc0327e28686d3166aad7a7aa05d93bdfb145a32b62c7956d9a71c7bfdb662b147aadd2c2ae05684fa9e82d61a3f228c0b29b08fb7e6424f77650ca5f WHIRLPOOL 9b5a5361b20f283899d84b41fb5a2019ed52a9dc9fe8f88ffa4013ed32617efa377b50a43493d7754463c4e6ea62a7bf5fc66053d7d747500f692e718da5d0ea +MISC ChangeLog 6657 SHA256 4039e994952442c1c10de8b12d55ade67dd3daab436d885c59b4215403e3fbfc SHA512 34cf7250482da5ed814df376d5c576334b9b4c91ba3380abde687f2c9966f51985cb4f4ae6e66a7068a774d970bd3a6910911f5e89e00109fb4b61c815733b40 WHIRLPOOL fc6f6cdb2e4a6a16cc49b83f8de193f9f9eb9e85ea3a8c611722634cfe6d175a1641cb4ef9dc698f2818a4c4f7ac3ed73d0dd69360cee36822fb3bc91726b8b1 +MISC ChangeLog-2015 6720 SHA256 f615d614532c053b35ee52e55dea48c5004e448cdea8997a488a8aec14a10fc5 SHA512 78d1e47854cd312c19c8518ceae69958d28b45c72ffb29f2ac309bb1281fc3a04a53304a6ce9652d87daa42b0aee406232884593aa89ee2f9be54c931c5b46d6 WHIRLPOOL 36d11b097ca6a3c5dbe68d784c011cddf5919aae86a85fb65cdb6dabe30efd1d8d4707e05a34cc5df39cbe9893a4eadaade1c285cfd40ef69e7f6889cee78956 +MISC metadata.xml 860 SHA256 4b4d0bd1846d773b27f309a07da4ce7a3eaca51c0252e8b7a37547e79f5af62f SHA512 db5ce7f7b361c9e742413bbb222fc3dfdd2747716e5d59a71dba5c14073a6bb18e1949d0247478a0652e6011af338e74ac790503773a2bc1d60693856b6f8650 WHIRLPOOL 5f71ab16c718b3a154cde841aa7243a13593feeaf3ea22e64ae8c1ca800ee323657d904ba2c52a0903993fe48c7a6fbd5575e353af99f8eb08aa0d49ab7916ac diff --git a/app-admin/packagekit-base/files/0001-entropy-PackageKitEntropyClient.output-API-update.patch b/app-admin/packagekit-base/files/0001-entropy-PackageKitEntropyClient.output-API-update.patch new file mode 100644 index 000000000000..e24faeec9a50 --- /dev/null +++ b/app-admin/packagekit-base/files/0001-entropy-PackageKitEntropyClient.output-API-update.patch @@ -0,0 +1,26 @@ +From ee2dfacb275e8145c7ae1ba8da86779054adf902 Mon Sep 17 00:00:00 2001 +From: Fabio Erculiani +Date: Fri, 6 Dec 2013 07:40:15 +0100 +Subject: [PATCH] entropy: PackageKitEntropyClient.output API update + +--- + backends/entropy/entropyBackend.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/backends/entropy/entropyBackend.py b/backends/entropy/entropyBackend.py +index 57b6c59..bec8ef6 100755 +--- a/backends/entropy/entropyBackend.py ++++ b/backends/entropy/entropyBackend.py +@@ -776,7 +776,8 @@ class PackageKitEntropyClient(Client): + def init_singleton(self): + Client.init_singleton(self, url_fetcher = PkUrlFetcher) + +- def output(self, text, header = "", footer = "", back = False, ++ @classmethod ++ def output(cls, text, header = "", footer = "", back = False, + importance = 0, level = "info", count = None, percent = False): + """ + Reimplemented from entropy.output.TextInterface. +-- +1.8.4.4 + diff --git a/app-admin/packagekit-base/files/packagekit-base-0.8.15-qtdbus-annotate.patch b/app-admin/packagekit-base/files/packagekit-base-0.8.15-qtdbus-annotate.patch new file mode 100644 index 000000000000..69a0fd7e5f49 --- /dev/null +++ b/app-admin/packagekit-base/files/packagekit-base-0.8.15-qtdbus-annotate.patch @@ -0,0 +1,12 @@ +Index: PackageKit-0.8.12/src/org.freedesktop.PackageKit.xml +=================================================================== +--- PackageKit-0.8.12.orig/src/org.freedesktop.PackageKit.xml ++++ PackageKit-0.8.12/src/org.freedesktop.PackageKit.xml +@@ -317,6 +317,7 @@ + + + ++ + + + diff --git a/app-admin/packagekit-base/files/packagekit-base-0.8.x-npapi-sdk.patch b/app-admin/packagekit-base/files/packagekit-base-0.8.x-npapi-sdk.patch new file mode 100644 index 000000000000..59b3ab109648 --- /dev/null +++ b/app-admin/packagekit-base/files/packagekit-base-0.8.x-npapi-sdk.patch @@ -0,0 +1,13 @@ +diff --git a/configure.ac b/configure.ac +index 3e8d301..7ba7f4b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -361,7 +361,7 @@ AC_ARG_ENABLE(browser_plugin, AS_HELP_STRING([--enable-browser-plugin],[Build br + enable_browser_plugin=$enableval,enable_browser_plugin=yes) + if test x$enable_browser_plugin = xyes; then + PKG_CHECK_MODULES(PK_BROWSER_PLUGIN, \ +- mozilla-plugin >= 8.0 \ ++ npapi-sdk \ + gio-unix-2.0 \ + nspr >= 4.8 \ + cairo \ diff --git a/app-admin/packagekit-base/files/packagekit-base-1.1.1-cache-qafix.patch b/app-admin/packagekit-base/files/packagekit-base-1.1.1-cache-qafix.patch new file mode 100644 index 000000000000..d7ec4b268c84 --- /dev/null +++ b/app-admin/packagekit-base/files/packagekit-base-1.1.1-cache-qafix.patch @@ -0,0 +1,15 @@ +--- a/src/~Makefile.am 2016-06-29 10:59:14.178918032 +0200 ++++ b/src/Makefile.am 2016-06-29 11:02:50.739929627 +0200 +@@ -175,11 +175,7 @@ pk_self_test_CFLAGS = \ + TESTS = pk-self-test + + install-data-hook: +- if test -w $(DESTDIR)$(prefix)/; then \ +- mkdir -p $(DESTDIR)$(localstatedir)/cache/PackageKit/downloads; \ +- mkdir -p $(DESTDIR)$(localstatedir)/cache/PackageKit/metadata; \ +- mkdir -p $(DESTDIR)$(localstatedir)/log; \ +- fi ++ + + clean-local: + rm -f *~ diff --git a/app-admin/packagekit-base/files/packagekit-base-elogind-support.patch b/app-admin/packagekit-base/files/packagekit-base-elogind-support.patch new file mode 100644 index 000000000000..df7675761d49 --- /dev/null +++ b/app-admin/packagekit-base/files/packagekit-base-elogind-support.patch @@ -0,0 +1,184 @@ +--- a/config.h.in 2017-06-07 16:38:45.046910693 +0200 ++++ b/config.h.in 2017-06-07 16:39:06.973911120 +0200 +@@ -78,8 +78,8 @@ + /* Define to 1 if you have the header file. */ + #undef HAVE_STRING_H + +-/* Build systemd code */ +-#undef HAVE_SYSTEMD ++/* Build systemd-login code */ ++#undef HAVE_SYSTEMD_SD_LOGIN_H + + /* Define to 1 if you have the header file. */ + #undef HAVE_SYS_STAT_H +--- a/configure.ac 2017-06-06 09:03:57.171355965 +0200 ++++ b/configure.ac 2017-06-06 09:55:11.242384458 +0200 +@@ -254,7 +254,6 @@ + AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]), + [has_systemdsystemunitdir=$with_systemdsystemunitdir], + [has_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)]) +- AC_DEFINE(HAVE_SYSTEMD,1,[Build systemd code]) + AC_SUBST([systemdsystemunitdir], [$has_systemdsystemunitdir]) + fi + AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$has_systemdsystemunitdir"]) +@@ -267,6 +266,24 @@ + AM_CONDITIONAL(ENABLE_OFFLINE_UPDATE, [test x$enable_systemd = xyes -a x$enable_offline_update = xyes]) + + dnl --------------------------------------------------------------------------- ++dnl - Use elogind instead of systemd-login ++dnl --------------------------------------------------------------------------- ++AC_ARG_ENABLE(elogind, AS_HELP_STRING([--enable-elogind],[enable elogind session tracker]), ++ enable_elogind=$enableval,enable_elogind=no) ++if test x$enable_elogind = xyes; then ++ PKG_CHECK_MODULES(ELOGIND, [libelogind >= 229.4], [have_elogind=yes], [have_elogind=no]) ++else ++ have_elogind=no ++fi ++ ++dnl --------------------------------------------------------------------------- ++dnl --- Is systemd/sd-login.h, either from systemd or elogind, available? ++dnl --------------------------------------------------------------------------- ++if test -n "$has_systemdsystemunitdir" -o "x$have_elogind" != "xno" ; then ++ AC_DEFINE(HAVE_SYSTEMD_SD_LOGIN_H,1,[Build systemd-login code]) ++fi ++ ++dnl --------------------------------------------------------------------------- + dnl - Generate man pages ? (default enabled) + dnl --------------------------------------------------------------------------- + AC_ARG_ENABLE(man_pages, AS_HELP_STRING([--disable-man-pages],[Disable man pages generation]), enable_man_pages=$enableval) +@@ -629,6 +644,7 @@ + cflags: ${CFLAGS} + cppflags: ${CPPFLAGS} + Able to run locally: ${enable_local} ++ Use elogind: ${enable_elogind} + Use systemd: ${enable_systemd} + Enable offline update: ${enable_offline_update} + Networking stacks: ${networking_apis} +--- a/src/Makefile.am 2017-06-06 10:02:19.902397328 +0200 ++++ b/src/Makefile.am 2017-06-06 10:04:05.013400483 +0200 +@@ -11,6 +11,7 @@ + $(PYTHON_CFLAGS) \ + $(NETWORK_MANAGER_CFLAGS) \ + $(CONNMAN_CFLAGS) \ ++ $(ELOGIND_CFLAGS) \ + $(SYSTEMD_CFLAGS) \ + -DPACKAGE_LOCALE_DIR=\"$(localedir)\" \ + -DBINDIR=\"$(bindir)\" \ +@@ -104,6 +105,7 @@ + $(POLKIT_LIBS) \ + $(GIO_LIBS) \ + $(ARCHIVE_LIBS) \ ++ $(ELOGIND_LIBS) \ + $(SYSTEMD_LIBS) + + packagekit_direct_LDFLAGS = \ +@@ -134,6 +136,7 @@ + $(POLKIT_LIBS) \ + $(GIO_LIBS) \ + $(ARCHIVE_LIBS) \ ++ $(ELOGIND_LIBS) \ + $(SYSTEMD_LIBS) + + packagekitd_LDFLAGS = \ +@@ -161,6 +164,7 @@ + $(POLKIT_LIBS) \ + $(GIO_LIBS) \ + $(ARCHIVE_LIBS) \ ++ $(ELOGIND_LIBS) \ + $(SYSTEMD_LIBS) + + pk_self_test_CPPFLAGS = \ +--- a/src/pk-engine.c 2017-06-06 09:12:23.828371176 +0200 ++++ b/src/pk-engine.c 2017-06-06 09:55:47.426385545 +0200 +@@ -98,7 +98,7 @@ + guint owner_id; + GDBusNodeInfo *introspection; + GDBusConnection *connection; +-#ifdef HAVE_SYSTEMD ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H + GDBusProxy *logind_proxy; + gint logind_fd; + #endif +@@ -281,7 +281,7 @@ + static void + pk_engine_inhibit (PkEngine *engine) + { +-#ifdef HAVE_SYSTEMD ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H + g_autoptr(GError) error = NULL; + g_autoptr(GUnixFDList) out_fd_list = NULL; + g_autoptr(GVariant) res = NULL; +@@ -331,7 +331,7 @@ + static void + pk_engine_uninhibit (PkEngine *engine) + { +-#ifdef HAVE_SYSTEMD ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H + if (engine->priv->logind_fd == 0) + return; + g_debug ("closed logind fd %i", engine->priv->logind_fd); +@@ -1830,7 +1830,7 @@ + } + } + +-#ifdef HAVE_SYSTEMD ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H + /** + * pk_engine_proxy_logind_cb: + **/ +@@ -1872,7 +1872,7 @@ + /* save copy for emitting signals */ + engine->priv->connection = g_object_ref (connection); + +-#ifdef HAVE_SYSTEMD ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H + /* connect to logind */ + g_dbus_proxy_new (connection, + G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES, +@@ -2031,7 +2031,7 @@ + if (engine->priv->connection != NULL) + g_object_unref (engine->priv->connection); + +-#ifdef HAVE_SYSTEMD ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H + /* uninhibit */ + if (engine->priv->logind_fd != 0) + close (engine->priv->logind_fd); +--- a/src/pk-dbus.c 2017-06-06 09:12:13.254370858 +0200 ++++ b/src/pk-dbus.c 2017-06-06 10:09:17.249409857 +0200 +@@ -27,7 +27,7 @@ + #include + #include + +-#ifdef HAVE_SYSTEMD ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H + #include + #endif + +@@ -177,7 +177,7 @@ + return cmdline; + } + +-#ifdef HAVE_SYSTEMD ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H + /** + * pk_dbus_get_session_systemd: + **/ +@@ -220,7 +220,7 @@ + pk_dbus_get_session (PkDbus *dbus, const gchar *sender) + { + gchar *session = NULL; +-#ifndef HAVE_SYSTEMD ++#ifndef HAVE_SYSTEMD_SD_LOGIN_H + g_autoptr(GError) error = NULL; + #endif + guint pid; +@@ -250,7 +250,7 @@ + } + + /* get session from systemd or ConsoleKit */ +-#ifdef HAVE_SYSTEMD ++#ifdef HAVE_SYSTEMD_SD_LOGIN_H + session = pk_dbus_get_session_systemd (pid); + #else + /* get session from ConsoleKit */ diff --git a/app-admin/packagekit-base/metadata.xml b/app-admin/packagekit-base/metadata.xml new file mode 100644 index 000000000000..37a216b6c7cf --- /dev/null +++ b/app-admin/packagekit-base/metadata.xml @@ -0,0 +1,24 @@ + + + + + mudler@gentoo.org + Ettore Di Giacinto + Assign bugs to him + + + lxnay@gentoo.org + Fabio Erculiani + CC on bugs + + + gnome@gentoo.org + Gentoo GNOME Desktop + + + Enable packagekit support on shell "command not found" + Install cron script for auto-update + Enable elogind support to get user session + Enable Entropy backend + + diff --git a/app-admin/packagekit-base/packagekit-base-1.0.11.ebuild b/app-admin/packagekit-base/packagekit-base-1.0.11.ebuild new file mode 100644 index 000000000000..888c3f9057e8 --- /dev/null +++ b/app-admin/packagekit-base/packagekit-base-1.0.11.ebuild @@ -0,0 +1,111 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +# PackageKit supports 3.2+, but entropy and portage backends are untested +# Future note: use --enable-python3 +PYTHON_COMPAT=( python2_7 ) +VALA_USE_DEPEND="vapigen" + +inherit bash-completion-r1 multilib nsplugins python-single-r1 systemd vala + +MY_PN="PackageKit" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="https://www.freedesktop.org/software/${MY_PN}/releases/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0/18" +KEYWORDS="~alpha amd64 ~arm ~mips ~ppc ~ppc64 x86" +IUSE="connman cron command-not-found +introspection networkmanager nsplugin entropy systemd test vala" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + vala? ( introspection ) +" + +# While not strictly needed, consolekit is the alternative to systemd-login +# to get current session's user. +CDEPEND=" + >=app-shells/bash-completion-2 + dev-db/sqlite:3 + >=dev-libs/dbus-glib-0.74 + >=dev-libs/glib-2.32.0:2[${PYTHON_USEDEP}] + >=sys-auth/polkit-0.98 + >=sys-apps/dbus-1.3.0 + ${PYTHON_DEPS} + connman? ( net-misc/connman ) + introspection? ( >=dev-libs/gobject-introspection-0.9.9[${PYTHON_USEDEP}] ) + networkmanager? ( >=net-misc/networkmanager-0.6.4 ) + nsplugin? ( + >=dev-libs/nspr-4.8 + x11-libs/cairo + >=x11-libs/gtk+-2.14.0:2 + x11-libs/pango + ) + systemd? ( >=sys-apps/systemd-204 ) +" +DEPEND="${CDEPEND} + dev-libs/libxslt[${PYTHON_USEDEP}] + >=dev-util/gtk-doc-am-1.11 + >=dev-util/intltool-0.35.0 + sys-devel/gettext + virtual/pkgconfig + nsplugin? ( >=net-misc/npapi-sdk-0.27 ) + vala? ( $(vala_depend) ) +" +RDEPEND="${CDEPEND} + >=app-portage/layman-2[${PYTHON_USEDEP}] + >=sys-apps/portage-2.2[${PYTHON_USEDEP}] + entropy? ( >=sys-apps/entropy-234[${PYTHON_USEDEP}] ) + !systemd? ( sys-auth/consolekit ) +" + +S="${WORKDIR}/${MY_P}" + +RESTRICT="test" + +src_prepare() { + use vala && vala_src_prepare +} + +src_configure() { + econf \ + --disable-gstreamer-plugin \ + --disable-gtk-doc \ + --disable-gtk-module \ + --disable-schemas-compile \ + --disable-static \ + --enable-bash-completion \ + --enable-man-pages \ + --enable-nls \ + --enable-portage \ + --localstatedir=/var \ + $(use_enable command-not-found) \ + $(use_enable connman) \ + $(use_enable cron) \ + $(use_enable entropy) \ + $(use_enable introspection) \ + $(use_enable networkmanager) \ + $(use_enable nsplugin browser-plugin) \ + $(use_enable systemd) \ + $(use_enable test daemon-tests) \ + $(use_enable vala) \ + $(systemd_with_unitdir) + #$(use_enable test local) +} + +src_install() { + emake DESTDIR="${D}" install + prune_libtool_files --all + + dodoc AUTHORS ChangeLog MAINTAINERS NEWS README + + if use nsplugin; then + dodir "/usr/$(get_libdir)/${PLUGINS_DIR}" + mv "${D}/usr/$(get_libdir)/mozilla/plugins"/* \ + "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/" || die + fi +} diff --git a/app-admin/packagekit-base/packagekit-base-1.1.1.ebuild b/app-admin/packagekit-base/packagekit-base-1.1.1.ebuild new file mode 100644 index 000000000000..a78d97003aa6 --- /dev/null +++ b/app-admin/packagekit-base/packagekit-base-1.1.1.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +# PackageKit supports 3.2+, but entropy and portage backends are untested +# Future note: use --enable-python3 +PYTHON_COMPAT=( python2_7 ) +VALA_USE_DEPEND="vapigen" + +inherit bash-completion-r1 multilib python-single-r1 systemd vala + +MY_PN="PackageKit" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="https://www.freedesktop.org/software/${MY_PN}/releases/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0/18" +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" +IUSE="connman cron command-not-found +introspection networkmanager entropy systemd test vala" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + vala? ( introspection ) +" + +# While not strictly needed, consolekit is the alternative to systemd-login +# to get current session's user. +CDEPEND=" + >=app-shells/bash-completion-2 + dev-db/sqlite:3 + >=dev-libs/dbus-glib-0.74 + >=dev-libs/glib-2.46.0:2[${PYTHON_USEDEP}] + >=sys-auth/polkit-0.98 + >=sys-apps/dbus-1.3.0 + ${PYTHON_DEPS} + connman? ( net-misc/connman ) + introspection? ( >=dev-libs/gobject-introspection-0.9.9:= ) + networkmanager? ( >=net-misc/networkmanager-0.6.4:= ) + systemd? ( >=sys-apps/systemd-204 ) +" +DEPEND="${CDEPEND} + dev-libs/libxslt[${PYTHON_USEDEP}] + >=dev-util/gtk-doc-am-1.11 + >=dev-util/intltool-0.35.0 + sys-devel/gettext + virtual/pkgconfig + vala? ( $(vala_depend) ) +" +RDEPEND="${CDEPEND} + >=app-portage/layman-2[${PYTHON_USEDEP}] + >=sys-apps/portage-2.2[${PYTHON_USEDEP}] + entropy? ( >=sys-apps/entropy-234[${PYTHON_USEDEP}] ) + !systemd? ( sys-auth/consolekit ) +" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Fixes QA Notices: https://github.com/gentoo/gentoo/pull/1760 and https://github.com/hughsie/PackageKit/issues/143 + eapply "${FILESDIR}/${P}-cache-qafix.patch" + + # Disable unittests not working with portage backend + # console: requires terminal input + sed -e 's:^\(.*/packagekit-glib2/control\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/transaction-list\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/client"\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/package-sack\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/task\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/console\)://\1:' \ + -i lib/packagekit-glib2/pk-test-daemon.c || die + sed -e 's:^\(.*/packagekit/spawn\)://\1:' \ + -e 's:^\(.*/packagekit/transaction-db\)://\1:' \ + -e 's:^\(.*/packagekit/backend\)://\1:' \ + -i src/pk-self-test.c || die + + eapply_user + use vala && vala_src_prepare +} + +src_configure() { + econf \ + --disable-gstreamer-plugin \ + --disable-gtk-doc \ + --disable-gtk-module \ + --disable-schemas-compile \ + --disable-static \ + --enable-bash-completion \ + --enable-man-pages \ + --enable-nls \ + --enable-portage \ + --localstatedir=/var \ + $(use_enable command-not-found) \ + $(use_enable connman) \ + $(use_enable cron) \ + $(use_enable entropy) \ + $(use_enable introspection) \ + $(use_enable networkmanager) \ + $(use_enable systemd) \ + $(use_enable test daemon-tests) \ + $(use_enable test local) \ + $(use_enable vala) \ + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" +} + +src_install() { + emake DESTDIR="${D}" install + prune_libtool_files --all + + dodoc AUTHORS ChangeLog MAINTAINERS NEWS README +} diff --git a/app-admin/packagekit-base/packagekit-base-1.1.4.ebuild b/app-admin/packagekit-base/packagekit-base-1.1.4.ebuild new file mode 100644 index 000000000000..2e070c3b583c --- /dev/null +++ b/app-admin/packagekit-base/packagekit-base-1.1.4.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +# PackageKit supports 3.2+, but entropy and portage backends are untested +# Future note: use --enable-python3 +PYTHON_COMPAT=( python2_7 ) +VALA_USE_DEPEND="vapigen" + +inherit bash-completion-r1 multilib python-single-r1 systemd vala xdg + +MY_PN="PackageKit" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="https://www.freedesktop.org/software/${MY_PN}/releases/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0/18" +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" +IUSE="connman cron command-not-found +introspection networkmanager entropy systemd test vala" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + vala? ( introspection ) +" + +# While not strictly needed, consolekit is the alternative to systemd-login +# to get current session's user. +CDEPEND=" + >=app-shells/bash-completion-2 + dev-db/sqlite:3 + >=dev-libs/dbus-glib-0.74 + >=dev-libs/glib-2.46.0:2[${PYTHON_USEDEP}] + >=sys-auth/polkit-0.98 + >=sys-apps/dbus-1.3.0 + ${PYTHON_DEPS} + connman? ( net-misc/connman ) + introspection? ( >=dev-libs/gobject-introspection-0.9.9:= ) + networkmanager? ( >=net-misc/networkmanager-0.6.4:= ) + systemd? ( >=sys-apps/systemd-204 ) +" +DEPEND="${CDEPEND} + dev-libs/libxslt[${PYTHON_USEDEP}] + >=dev-util/gtk-doc-am-1.11 + >=dev-util/intltool-0.35.0 + sys-devel/gettext + virtual/pkgconfig + vala? ( $(vala_depend) ) +" +RDEPEND="${CDEPEND} + >=app-portage/layman-2[${PYTHON_USEDEP}] + >=sys-apps/portage-2.2[${PYTHON_USEDEP}] + entropy? ( >=sys-apps/entropy-234[${PYTHON_USEDEP}] ) + !systemd? ( sys-auth/consolekit ) +" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Fixes QA Notices: + # - https://github.com/gentoo/gentoo/pull/1760 + # - https://github.com/hughsie/PackageKit/issues/143 + eapply "${FILESDIR}"/${PN}-1.1.1-cache-qafix.patch + + # Disable unittests not working with portage backend + # console: requires terminal input + sed -e 's:^\(.*/packagekit-glib2/control\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/transaction-list\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/client"\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/package-sack\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/task\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/console\)://\1:' \ + -i lib/packagekit-glib2/pk-test-daemon.c || die + sed -e 's:^\(.*/packagekit/spawn\)://\1:' \ + -e 's:^\(.*/packagekit/transaction-db\)://\1:' \ + -e 's:^\(.*/packagekit/backend\)://\1:' \ + -i src/pk-self-test.c || die + + eapply_user + use vala && vala_src_prepare + xdg_src_prepare +} + +src_configure() { + econf \ + --disable-gstreamer-plugin \ + --disable-gtk-doc \ + --disable-gtk-module \ + --disable-schemas-compile \ + --disable-static \ + --enable-bash-completion \ + --enable-man-pages \ + --enable-nls \ + --enable-portage \ + --localstatedir=/var \ + $(use_enable command-not-found) \ + $(use_enable connman) \ + $(use_enable cron) \ + $(use_enable entropy) \ + $(use_enable introspection) \ + $(use_enable networkmanager) \ + $(use_enable systemd) \ + $(use_enable test daemon-tests) \ + $(use_enable test local) \ + $(use_enable vala) \ + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" +} + +src_install() { + emake DESTDIR="${D}" install + prune_libtool_files --all + + dodoc AUTHORS ChangeLog MAINTAINERS NEWS README +} diff --git a/app-admin/packagekit-base/packagekit-base-1.1.5-r2.ebuild b/app-admin/packagekit-base/packagekit-base-1.1.5-r2.ebuild new file mode 100644 index 000000000000..9d6f36571e9d --- /dev/null +++ b/app-admin/packagekit-base/packagekit-base-1.1.5-r2.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +# PackageKit supports 3.2+, but entropy and portage backends are untested +# Future note: use --enable-python3 +PYTHON_COMPAT=( python2_7 ) +VALA_USE_DEPEND="vapigen" + +inherit autotools bash-completion-r1 multilib python-single-r1 systemd vala xdg + +MY_PN="PackageKit" +MY_P=${MY_PN}-${PV} + +DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API" +HOMEPAGE="http://www.packagekit.org/" +SRC_URI="https://www.freedesktop.org/software/${MY_PN}/releases/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0/18" +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86" +IUSE="connman cron command-not-found elogind +introspection networkmanager entropy systemd test vala" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + ?? ( elogind systemd ) + vala? ( introspection ) +" + +# While not strictly needed, consolekit is the alternative to systemd-login +# or elogind to get current session's user. +COMMON_DEPEND=" + >=app-shells/bash-completion-2 + dev-db/sqlite:3 + >=dev-libs/dbus-glib-0.74 + >=dev-libs/glib-2.46.0:2[${PYTHON_USEDEP}] + >=sys-auth/polkit-0.98 + >=sys-apps/dbus-1.3.0 + ${PYTHON_DEPS} + connman? ( net-misc/connman ) + elogind? ( >=sys-auth/elogind-229.4 ) + introspection? ( >=dev-libs/gobject-introspection-0.9.9:= ) + networkmanager? ( >=net-misc/networkmanager-0.6.4:= ) + systemd? ( >=sys-apps/systemd-204 ) +" +DEPEND="${COMMON_DEPEND} + >=dev-cpp/glibmm-2.4 + dev-libs/libxslt[${PYTHON_USEDEP}] + >=dev-util/gtk-doc-am-1.11 + >=dev-util/intltool-0.35.0 + sys-devel/gettext + virtual/pkgconfig + vala? ( $(vala_depend) ) +" +RDEPEND="${COMMON_DEPEND} + >=app-portage/layman-2[${PYTHON_USEDEP}] + >=sys-apps/portage-2.2[${PYTHON_USEDEP}] + entropy? ( >=sys-apps/entropy-234[${PYTHON_USEDEP}] ) + !systemd? ( !elogind? ( sys-auth/consolekit ) ) +" + +PATCHES=( + # Fixes QA Notices: + # - https://github.com/gentoo/gentoo/pull/1760 + # - https://github.com/hughsie/PackageKit/issues/143 + "${FILESDIR}"/${PN}-1.1.1-cache-qafix.patch + + # Adds elogind support: + # - https://bugs.gentoo.org/show_bug.cgi?id=620948 + "${FILESDIR}"/${PN}-elogind-support.patch +) + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Disable unittests not working with portage backend + # console: requires terminal input + sed -e 's:^\(.*/packagekit-glib2/control\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/transaction-list\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/client"\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/package-sack\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/task\)://\1:' \ + -e 's:^\(.*/packagekit-glib2/console\)://\1:' \ + -i lib/packagekit-glib2/pk-test-daemon.c || die + sed -e 's:^\(.*/packagekit/spawn\)://\1:' \ + -e 's:^\(.*/packagekit/transaction-db\)://\1:' \ + -e 's:^\(.*/packagekit/backend\)://\1:' \ + -i src/pk-self-test.c || die + + eapply_user + use vala && vala_src_prepare + xdg_src_prepare + + # Needed by elogind patch: + eautoreconf +} + +src_configure() { + econf \ + --disable-gstreamer-plugin \ + --disable-gtk-doc \ + --disable-gtk-module \ + --disable-schemas-compile \ + --disable-static \ + --enable-bash-completion \ + --enable-man-pages \ + --enable-nls \ + --enable-portage \ + --localstatedir=/var \ + $(use_enable command-not-found) \ + $(use_enable connman) \ + $(use_enable cron) \ + $(use_enable elogind) \ + $(use_enable entropy) \ + $(use_enable introspection) \ + $(use_enable networkmanager) \ + $(use_enable systemd) \ + $(use_enable test daemon-tests) \ + $(use_enable test local) \ + $(use_enable vala) \ + --with-systemdsystemunitdir="$(systemd_get_systemunitdir)" +} + +src_install() { + emake DESTDIR="${D}" install + prune_libtool_files --all + + dodoc AUTHORS ChangeLog MAINTAINERS NEWS README +} -- cgit v1.2.3