summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--network/nateon/knateon.patch60
-rw-r--r--network/nateon/nateon.SlackBuild9
2 files changed, 66 insertions, 3 deletions
diff --git a/network/nateon/knateon.patch b/network/nateon/knateon.patch
new file mode 100644
index 0000000000..4ba4d01716
--- /dev/null
+++ b/network/nateon/knateon.patch
@@ -0,0 +1,60 @@
+--- nateon-1.2/nateon/knateon.cpp.orig 2012-09-23 21:32:04.881311086 +0700
++++ nateon-1.2/nateon/knateon.cpp 2012-09-23 21:32:16.785153870 +0700
+@@ -2490,20 +2490,20 @@
+
+ int nTID = m_pDPcon->putADSB(sCommand);
+
+- Buddy *pBuddy = new Buddy();
+- pBuddy->setFL( true );
+- pBuddy->setUID( sID );
+- pBuddy->setName( sID );
+- pBuddy->setNick( sID );
++ Buddy *pBuddy2 = new Buddy();
++ pBuddy2->setFL( true );
++ pBuddy2->setUID( sID );
++ pBuddy2->setName( sID );
++ pBuddy2->setNick( sID );
+
+ /// TID를 저장하기 위해 임시로 사용됨.
+- pBuddy->setHandle( "TID:" + QString::number(nTID) );
++ pBuddy2->setHandle( "TID:" + QString::number(nTID) );
+
+ /// 수락을 받기 전에 버디에 추가 시킴.
+- m_pBuddyList->addBuddy( pBuddy );
++ m_pBuddyList->addBuddy( pBuddy2 );
+
+ /*! 0 그룹에 등록하기. */
+- m_pDPcon->setGroup0( pBuddy );
++ m_pDPcon->setGroup0( pBuddy2 );
+
+ /*!
+ * 목록 refresh
+--- nateon-1.2/nateon/knateonmainview.cpp.orig 2012-09-23 21:41:02.870430208 +0700
++++ nateon-1.2/nateon/knateonmainview.cpp 2012-09-23 21:39:53.259320655 +0700
+@@ -1171,18 +1171,18 @@
+ slotEmoticonList( stConfig.viewemoticonlist );
+ }
+ } else {
+- Buddy *pBuddy = new Buddy();
+- pBuddy->setFL( true );
+- pBuddy->setHandle( slCommand[3] );
+- pBuddy->setUID( slCommand[7] );
+- pBuddy->setName( slCommand[4] );
+- pBuddy->setNick( slCommand[7] );
++ Buddy *pBuddy2 = new Buddy();
++ pBuddy2->setFL( true );
++ pBuddy2->setHandle( slCommand[3] );
++ pBuddy2->setUID( slCommand[7] );
++ pBuddy2->setName( slCommand[4] );
++ pBuddy2->setNick( slCommand[7] );
+
+ /*! 그룹에 등록하기. */
+ Group *pGroup = pGroupList->getGroupByID( slCommand[8] );
+- pGroup->addBuddy( pBuddy );
++ pGroup->addBuddy( pBuddy2 );
+
+- pBuddyList->addBuddy( pBuddy );
++ pBuddyList->addBuddy( pBuddy2 );
+
+ /*!
+ * 목록 refresh
diff --git a/network/nateon/nateon.SlackBuild b/network/nateon/nateon.SlackBuild
index 864c3baa7e..a62fd2b3af 100644
--- a/network/nateon/nateon.SlackBuild
+++ b/network/nateon/nateon.SlackBuild
@@ -3,10 +3,11 @@
# Slackware build script for nateon
# Written by crocket (crockabiscuit@gmail.com)
+# Updated by Willy Sudiarto Raharjo
PRGNAM=nateon
VERSION=${VERSION:-1.2.0.326}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -52,6 +53,8 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+patch -p1 < $CWD/knateon.patch
+
mkdir -p build
cd build
cmake \
@@ -70,8 +73,8 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- AUTHORS BUGS INSTALL LICENSE NEWS README THANKS TODO 네이트닷컴서비스이용약관.txt \
- 소스코드이용및서버접속약관.txt $PKG/usr/doc/$PRGNAM-$VERSION
+ AUTHORS BUGS INSTALL LICENSE NEWS README THANKS TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install